EXERCISE 12-4. Using the shorthand font property One last tweak to the menu, and then we'll take a brief break. To save space, we can replace all the font properties we've specified for the h1 element with one declaration with the shorthand font property: h1 { font: bold 1.5em "Marko One", Georgia, serif;} You might find it redundant that I included the bold font weight value in this rule. After all, the h1 element was already bold by default, right? The thing about shorthand properties is that if you omit a value, it is reset to the default value for that property, not the browser's default value. In this case, the default font-weight value within a font declaration is normal. Because our style sheet overrides the browser's default bold heading style, the h1 would appear in normal-weight text if we don't explicitly make it bold in the font property. shorthand properties can be tricky that way.pay attention so you don't leave something out and override a default or inherited value you were counting on. You can save this and look at it in the browser. If you've done your job right, it should look exactly the same as in the previous step.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

<style>
body {
font-family: Georgia, serif;
font-size: 100%;
line-height: 175%;

margin: 0 15% 0;
}
header {
margin-top: 0;
padding: 3em 1em 2em 1em;
text-align: center;
}

a {
text-decoration: none;
}

h1 {
font: bold 1.5em Georgia, serif;
text-shadow: .1em .1em .2em gray;
}
h2 {
font-size: 1em;
text-transform: uppercase;
letter-spacing: .5em;
text-align: center;
}
dt {
font-weight: bold;
}
strong {
font-style: italic;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
#info p {
font-style: italic;
}
.price {
font-family: Georgia, serif;
font-style: italic;
}
p.warning, sup {
font-size: small;
}
.label {
font-weight: bold;
font-variant: small-caps;
font-style: normal;
}

h2 + p {
text-align: center;
font-style: italic;
}


</style>

 


<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="main-styles.css">
<title>About me</title>
</head>
<body>

<header>
<h1>Black Goose Bistro &bull; Summer Menu</h1>

<div id="info">
<p>Baker's Corner, Seekonk, Massachusetts<br>
<span class="label">Hours: Monday through Thursday:</span> 11 to 9, <span class="label">Friday and Saturday;</span> 11 to midnight</p>
<ul>
<li><a href="#appetizers">Appetizers</a></li>
<li><a href="#entrees">Main Courses</a></li>
<li><a href="#toast">Traditional Toasts</a></li>
<li><a href="#dessert">Dessert Selection</a></li>
</ul>
</div>
</header>

<section id="appetizers">
<h2>Appetizers</h2>
<p>This season, we explore the spicy flavors of the southwest in our appetizer collection.</p>

<dl>
<dt>Black bean purses</dt>
<dd>Spicy black bean and a blend of mexican cheeses wrapped in sheets of phyllo and baked until golden. <span class="price">$3.95</span></dd>

<dt class="newitem">Southwestern napoleons with

lump crab &mdash; <strong>new item!</strong></dt>
<dd>Layers of light lump crab meat, bean and corn salsa, and our handmade flour tortillas. <span class="price">$7.95</span></dd>
</dl>
</section>

<section id="entrees">

<h2>Main courses</h2>
<p>Big, bold flavors are the name of the game this summer. Allow us to assist you with finding the perfect wine.</p>


<dl>

<dt class="newitem">Jerk rotisserie chicken with fried plantains &mdash; <strong>new item!</strong></dt>
<dd>Tender chicken slow-roasted on the rotisserie, flavored with spicy and fragrant jerk sauce and served with fried plantains and fresh mango. <strong>Very spicy.</strong> <span class="price">$12.95</span></dd>

<dt>Shrimp sate kebabs with peanut sauce</dt>
<dd>Skewers of shrimp marinated in lemongrass, garlic, and fish sauce then grilled to perfection. Served with spicy peanut sauce and jasmine rice. <span class="price">$12.95</span></dd>

<dt>Grilled skirt steak with mushroom fricasee</dt>
<dd>Flavorful skirt steak marinated in asian flavors grilled as you like it<sup>*</sup>. Served over a blend of sauteed wild mushrooms with a side of blue cheese mashed potatoes. <span class="price">$16.95</span></dd>
</dl>

</section>

<section id="toast">
<h2>Traditional Toasts</h2>
<p>The ultimate comfort food, our traditional toast recipes are adapted from <a href="http://www.gutenberg.org/files/13923/13923-h/13923-h.htm"><cite>The Whitehouse Cookbook</cite></a> published in 1887.</p>

<dl>
<dt>Cream toast</dt>
<dd>Simple cream sauce over highest quality toasted bread, baked daily. <span class="price">$3.95</span></dd>

<dt>Mushroom toast</dt>
<dd>Layers of light lump crab meat, bean and corn salsa, and our handmade flour tortillas. <span class="price">$6.95</span></dd>

<dt>Nun's toast</dt>
<dd>Onions and hard-boiled eggs in a cream sauce over buttered hot toast. <span class="price">$6.95</span></dd>

<dt>Apple toast</dt>
<dd>Sweet, cinnamon stewed apples over delicious buttery grilled bread. <span class="price">$6.95</span></dd>
</dl>
</section>

<section id="dessert">
<h2>Dessert Selection</h2>
<p>Be sure to save room for our desserts, made daily by our own <a href="http://www.jwu.edu/college.aspx?id=19510">Johnson & Wales</a> trained pastry chef.</p>

<dl>
<dt class="newitem">Lemon chiffon cake &mdash; <strong>new item!</strong></dt>
<dd>Light and citrus flavored sponge cake with buttercream frosting as light as a cloud. <span class="price">$2.95</span></dd>

<dt class="newitem">Molten chocolate cake</dt>
<dd>Bubba's special dark chocolate cake with a warm, molten center. Served with or without a splash of almond liqueur. <span class="price">$3.95</span></dd>
</dl>
</section>

<footer>
<p class="warning"><sup>*</sup> We are required to warn you that undercooked food is a health risk.</p>
</footer>

</body>
</html>
</body>
</html>

EXERCISE 12-4. Using the shorthand font property
One last tweak to the menu, and then we'll take a brief break. To save space,
we can replace all the font properties we've specified for the h1 element with
one declaration with the shorthand font property:
h1 { font: bold 1.5em "Marko One", Georgia, serif;}
You might find it redundant that I included the bold font weight value in this
rule. After all, the h1 element was already bold by default, right? The thing
about shorthand properties is that if you omit a value, it is reset to the default
value for that property, not the browser's default value.
In this case, the default font-weight value within a font declaration is normal.
Because our style sheet overrides the browser's default bold heading style, the
h1 would appear in normal-weight text if we don't explicitly make it bold in
the font property. Shorthand properties can be tricky that way..pay attention
so you don't leave something out and override a default or inherited value
you were counting on.
You can save this and look at it in the browser. If you've done your job right, it
should look exactly the same as in the previous step.
Transcribed Image Text:EXERCISE 12-4. Using the shorthand font property One last tweak to the menu, and then we'll take a brief break. To save space, we can replace all the font properties we've specified for the h1 element with one declaration with the shorthand font property: h1 { font: bold 1.5em "Marko One", Georgia, serif;} You might find it redundant that I included the bold font weight value in this rule. After all, the h1 element was already bold by default, right? The thing about shorthand properties is that if you omit a value, it is reset to the default value for that property, not the browser's default value. In this case, the default font-weight value within a font declaration is normal. Because our style sheet overrides the browser's default bold heading style, the h1 would appear in normal-weight text if we don't explicitly make it bold in the font property. Shorthand properties can be tricky that way..pay attention so you don't leave something out and override a default or inherited value you were counting on. You can save this and look at it in the browser. If you've done your job right, it should look exactly the same as in the previous step.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY