div
is one of the most common tags. It is used to divide HTML documents into
different sections and then apply CSS styles to them. The're identified with ids.
Here is a list of styles presented as an unordered list (ul
).
code
We can apply styles to text directly in the HTML file.
Here's a neat example using color
,
font-size
, and text-align
.
We could also use a separate .css
file called CSS style sheet. If we do that we have to link it to
our HTML file using link
in the header. But we'll do that later.
Create an example page as an exercise from the book
id
attributes to all HTML tags. This will make
it easier to add CSS styles to them later on.
ñ
)