HTML & CSS In Pictures
HTML Basics
Navigation & Layout
Interactivity
Advanced Layout
In
advlayout.html
, enclose the word
Gadgets
in
<span>
tags with the class
yellowtext
:
<h1>The Magazine for People Who Like
<span class="yellowtext">
Gadgets
<span>
</h1>
In
format.css
, insert a new class called
yellowtext
:
.yellowtext {
color: #ffff00;
}
Save both
layout.css
and
advlayout.html
, then view
advlayout.html
in the browser.
The word
Gadgets
should now be yellow.
<< BACK
NEXT >>