Complete the style rules above by providing your Google Fonts as values to the font- family property. Be sure to include a web safe font as a fallback if the browser fails to load the Google Font. Apply the primary font class to the Level One Section Heading. Then apply the secondary font class to the Level Two Section Heading. Finally, create a style rule that applies the third Google Font to any paragraph element that immediate follows an element with the secondary font class.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

what I have so far

 


body{
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #556271;
color: white;
}
h1{
color: #fe6a67;
text-align: center;
font-weight: normal;
text-transform: uppercase;
border-top: 1px dotted #d4dccd;
margin-top: 30px;
}
h2{
font-size: 1em;
text-align: center;
}
body{
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h1{
width: 2px;
border-top: 1px dotted;
border-top-color: #506D84;
}
h2{
text-align: center;
}

**Styling Text with Google Fonts**

To enhance your web design using Google Fonts, follow these steps to style your text elements:

1. **Font-Family Property:**
   - Integrate your Google Fonts by assigning them to the `font-family` property. Always include a web-safe font as a backup in case the Google Font fails to load.

2. **Primary and Secondary Fonts:**
   - Assign the `primary font` class to the Level One Section Heading.
   - Apply the `secondary font` class to the Level Two Section Heading.

3. **Paragraph Styling Rule:**
   - Develop a styling rule for the paragraph element that immediately follows an element with the `secondary font` class. Use the third Google Font here.

These steps ensure consistent typography rendering across different browsers and devices.
Transcribed Image Text:**Styling Text with Google Fonts** To enhance your web design using Google Fonts, follow these steps to style your text elements: 1. **Font-Family Property:** - Integrate your Google Fonts by assigning them to the `font-family` property. Always include a web-safe font as a backup in case the Google Font fails to load. 2. **Primary and Secondary Fonts:** - Assign the `primary font` class to the Level One Section Heading. - Apply the `secondary font` class to the Level Two Section Heading. 3. **Paragraph Styling Rule:** - Develop a styling rule for the paragraph element that immediately follows an element with the `secondary font` class. Use the third Google Font here. These steps ensure consistent typography rendering across different browsers and devices.
**Instructions for Using Google Fonts in Your Style Sheet**

1. Go to [Google Fonts](https://fonts.google.com/).
2. Search for three interesting fonts.
3. To select a font family, click on the font preview and press the "select this style" button.
4. When you've chosen the font families, press the *View your selected families* button in the top right corner of the page.
5. Use the import rule (without the `<style>` tags) in your style sheet to import the font.
6. Refer to the CSS declarations example in the *selected families* menu to learn how to use your selected fonts.

**Add the following style rules to your style sheet:**

```css
.primary-font {
}

.secondary-font {
}
```

These steps will help you seamlessly integrate Google Fonts into your CSS for enhanced web typography.
Transcribed Image Text:**Instructions for Using Google Fonts in Your Style Sheet** 1. Go to [Google Fonts](https://fonts.google.com/). 2. Search for three interesting fonts. 3. To select a font family, click on the font preview and press the "select this style" button. 4. When you've chosen the font families, press the *View your selected families* button in the top right corner of the page. 5. Use the import rule (without the `<style>` tags) in your style sheet to import the font. 6. Refer to the CSS declarations example in the *selected families* menu to learn how to use your selected fonts. **Add the following style rules to your style sheet:** ```css .primary-font { } .secondary-font { } ``` These steps will help you seamlessly integrate Google Fonts into your CSS for enhanced web typography.
Expert Solution
Step 1

Given,

  • We have to complete the given style rule.
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education