The font-family is the declaration property that is used to set the font typeface for an area of web page.
Hence, the correct answer is option “B”.
Explanation of Solution
Font-family:
- The “font-family” property is used to specify the font for an element.
- It can hold several font names separated with a comma.
- If the browser cannot support the first font then it will automatically shift to the next one.
Syntax:
font-family: family-name|generic-family|initial|inherit;
Explanation:
On the Right Hand Side, the first term “family-name” describes the list of font family names and the second term “generic-family” describes the list of generic family names. The next term “initial” is used to set the CSS property to a default value. The last term “inherit” is used to inherit the elements from their parent elements.
Example Program:
<html>
<head>
<style>
p.a
{
font-family: Arial, Times, serif;
}
p.b
{
font-family: "Times New Roman", Helvetica, sans-serif;
}
</style>
</head>
<body>
<h1 style="color:green">The font-family Property</h1>
<p class="a">This is a paragraph, shown in the Arial font.</p>
<p class="b">This is a paragraph, shown in the Times New Roman font.</p>
</body>
</html>
In the above example, it specifies the font for two paragraphs. The first paragraph “This is a paragraph, shown in the Arial font” is written in the “Arial” font and the second paragraph “This is a paragraph, shown in the Times New Roman font” is written in the “Times New Roman” font.
Explanation for incorrect options:
Face:
The face attribute is used to specify the font for the text, which is inside the <font> element.
Hence, the option “A” is wrong.
Font-face:
The font-face operator is used to show a font on the web-page even if that font is not installed.
Hence, the option “C” is wrong.
Size:
The property size is used to set the size of a font.
Hence, the option “D” is wrong.
Want to see more full solutions like this?
Chapter 3 Solutions
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
- Find the error: daily_sales = [0.0, 0,0, 0.0, 0.0, 0.0, 0.0, 0.0] days_of_week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] for i in range(7): daily_sales[i] = float(input('Enter the sales for ' \ + days_of_week[i] + ': ')arrow_forwardFind the error: daily_sales = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] days_of_week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] for i in range(6): daily_sales[i] = float(input('Enter the sales for ' \ + days_of_week[i] + ': '))arrow_forwardWhat are the steps you will follow in order to check the database and fix any problems with it and normalize it? Give two references with your answer.arrow_forward
- What are the steps you will follow in order to check the database and fix any problems with it? Have in mind that you SHOULD normalize it as well. Consider that the database offline is not allowed since people are connected to it and personal data might be bridged and not secured. Provide three refernces with you answer.arrow_forwardShould software manufacturers should be tolerant of the practice of software piracy in third-world countries to allow these countries an opportunity to move more quickly into the information age? Why or why not?arrow_forwardI would like to know about the features of Advanced Threat Protection (ATP), AMD-V, and domain name space (DNS).arrow_forward
- I need help to resolve the following activityarrow_forwardModern life has been impacted immensely by computers. Computers have penetrated every aspect of oursociety, either for better or for worse. From supermarket scanners calculating our shopping transactionswhile keeping store inventory; robots that handle highly specialized tasks or even simple human tasks,computers do much more than just computing. But where did all this technology come from and whereis it heading? Does the future look promising or should we worry about computers taking over theworld? Or are they just a necessary evil? Provide three references with your answer.arrow_forwardWhat are the steps you will follow in order to check the database and fix any problems with it? Have in mind that you SHOULD normalize it as well. Describe in full, consider the following:• Taking the database offline is not allowed since people are connected to it.• Personal data might be bridged and not secured. Provide three refernces with you answerarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education