HTML and CSS Reference
Getting better, but are all headings the same? How about if we indicate the most important heading
with the number 1 and a less important heading with a 2, like this:
Now when a computer program, like a browser, renders this marked-up text, it strips out the markup
symbols (called tags in HTML) and shows the text with the appropriate styling, as shown in Figure 1-1.
Most of this topic explores the wide range of HTML tags used to mark up web page content so that
you can create web pages that look the way you want them to.
How browsers sTyLe web PaGes
Like most computer software, a web browser only works with a particular type of file. An HTML
page typically ends in the file extension of .html or .htm . When a browser loads an .html document,
it begins to redraw the screen according to the included HTML markup and content.
The browser has a default style for each HTML tag that indicates a visual element for the page, such
as a heading, that governs the size, color, and other properties of the element. These default styles —
and, in fact, how HTML tags are applied in general — are based on a recommendation by the inter-
national consortium that determines HTML specifications, the W3C. Each browser determines how
best to interpret the HTML recommendations, which explains why web pages can look different
from one browser to the next.