ldentify & number (using the style rule number) the elements in the HTML on the
ID: 3905190 • Letter: L
Question
ldentify & number (using the style rule number) the elements in the HTML on the next page that would be affected by each of the style rules listed below. Clearly mark & label each HTML tag affected with the corresponding style rule number. CSS /** Style rule #1 **/ h2 + p t color: red; margin-bottom: 20px; /** Style rule #2 **/ p:first-of-type f font-style: italic; font-size: 2em; /** Style rule #3 **/ ul li:first-child { border-bottom: lpx solid grey; /** Style rule #4 **/ article h3 f border-bottom: 1px solid #333333; /** Style rule #5 **/ article > h3 1 border-right: 5px solid #333333;Explanation / Answer
I have put the style rule number in comment (<!-- this is a comment -->) above each element that gets affected by that style. Some elements get affected by multiple style rules. I have commented them line by line above the element that gets affected.
Here is the HTML code with comments:
<body>
<h2>Queen discography</h2>
<!-- Style rule #1-->
<!-- Style rule #2-->
<p>Queen are a British rock band that formed in London in
1970. Their classic line—up was Freddie Mercury ( lead vocals ,
piano) , Brian May (lead guitar, vocals), Roger Taylor (drums,
vocals) , and John Deacon (bass guitar). </p>
<p>Queen's earliest works were influenced by progressive rock,
hard rock and heavy metal, but the band gradually ventured
into more conventional and radio—friendly works by
incorporating further styles, such as arena rock and pop rock,
into their music. </p>
<article>
<!-- Style rule #4-->
<!-- Style rule #5-->
<h3>The Works</h3>
<!-- Style rule #2-->
<p>The Works is the eleventh studio album by the British
rock band Queen, released on 27 February 1984. The Works
opens with "Radio Ga Ga" </p>
<section>
<!-- Style rule #4-->
<h3>History</h3>
<!-- Style rule #2-->
<p>Following the release of and subsequent touring for
their 1982 album Hot Space, the four members of Queen
opted to take a break from the band the following
year. </p>
<p>Brian May worked with Eddie Van Halen and others on
the Star Fleet Project, while Freddie Mercury began
work on his solo album. </p>
</section>
<section>
<!-- Style rule #4-->
<h3> Track listing </h3>
<section>
<!-- Style rule #4-->
<h3>Track Listing </h3>
<ol>
<li>Radio ga ga</li>
<li>Tear it up</li>
<li>its a hard life</li>
<li>man on the prowl</li>
<li>...</li>
</ol>
</section>
</section>
</article>
</body>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.