Create a style rule for the blockquote element that sets the color property to the value hsl(30, 85%, 45%) and sets the font-size property to 1.5em. Also, create a style for the first letter of the blockquote element that sets the font-size property to 1.5em.
This is what I have currently:
/*
New Perspectives on HTML5 and CSS3, 8th Edition
Tutorial 2
Coding Challenge 1
Author: Elizabeth Iniguez
Date: 10/01/2020
Filename: code2-1.css
*/
h1{font-size: 3.5em; line-height: 0em}
h1, h2{font-family: Helvetica, Arial, Helvetica, sans-serif, sans-serif; letter-spacing: 0.1em}
blockquote{color: hsl(30, 85%, 45%);font-size: 1.5em;}
blockquote: :first-letter{font-size: 1.5em;}
footer{text-align: center; font-size: 2em; color: white; background-color: hsl(30, 85%, 45%); }
Ans)
HTML code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Literary Excerpts</title>
<link rel="stylesheet" type="text/css" href="code2-1_txt.css">
</head>
<body>
<h1>Literary Excerpts</h1>
<h2>A Selection of Great Prose </h2><br>
<div class="blockquote">
<p>
<span class="start-letter">W</span>e are the music makers,And we are the dreamers of dreams. Wandering by lone sea-breakers.And sitting by desolate streams. World-losers and world-forsakers, Upon whom the pale moon
gleams; Yet we are movers and shakers, Of the world forever, it seems.<br>
<span class="quote-writer">— Arthur O'shaughnessy, Poems of Arthur O'shaughnessy</span><br><br>
<span class="start-letter">I</span> took a deep breath and listened to the old brag of my heart.I am, I am, I am.<br>
<span class="quote-writer">— Sylvia Plath, The Bell Jar</span><br><br>
<span>T</span>he most beautiful things in the world cannot be seen or touched , they are felt with the heart.<br>
<span class="quote-writer">— Antoine de Saint-Exupéry, The Little Prince</span><br><br>
<span class="start-letter">S</span>tuff your eyes with wonder, he said , live as if you'd drop dead in ten seconds.See the world. It's more fantastic than any dream made or paid for in factories.<br>
<span class="quote-writer">— Ray Bradbury, Fahrenheit 451</span>
</p>
</div>
<footer>The Word Factory</footer>
</body>
</html>
code2-1_txt.css
*{
padding: 0;
margin: 0;
}
h1{
font-size: 3.5em;
height: 0em;
font-family: Helvetica,Arial, sans-serif;
letter-spacing: 0.1em;
margin-top: 5px;
margin-left: 0px;
}
h2{
font-family: Helvetica,Arial, sans-serif;
letter-spacing: 0.1em;
margin-top: 70px;
margin-left: 0px;
}
.blockquote{
color: hsl(30,85%,45%);
font-size: 1.5em;
margin-left: 45px;
}
p{
font-family: "Times New Roman", Times, serif;
}
footer{
text-align: center;
font-size: 2em;
color: white;
background-color: hsl(30,85%,45%);
margin-left: 0px;
font-family: "Times New Roman", Times, serif;
position: absolute;
width: 99%;
bottom: 7px;
margin-right: 1px;
}
.start-letter{
font-size: 1.5em;
}
.quote-writer{
font-style: italic;
}
Above execute the browser and get output in below screen shot here
if any doubts in above below code screen shot
Check once
if your satisfy above answer please give positive rating or like ?
please don't dislike
Thank you!
Get Answers For Free
Most questions answered within 1 hours.