HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 2. CONTENT VS MARKUP 16


tational markup.


As you do these things throughout your document, you are marking up your
document.


2.2 Markup


There are many HTML markup tags that are recognized by web browsers
but some are clearly more popular and more useful than others. Here is my
list of common markups.


Best Practices:Tags should be written with lower-case letters. Write h1,
not H1.


2.2.1 h1: Headings


is the structural markup that introduces a level-one heading. It does
not force the heading to be bigger and bolder, although that normally hap-
pens. Instead, it just identifies it as a heading. The exact effect is specified
elsewhere (in the CSS).

h1 means something is a major heading. h2 means something is a subhead-
ing.


Exam Question 9(p.337):The HTML tag “h1” stands for what word(s)?
Acceptable Answer:heading one


Exam Question 10(p.337):The HTML tag “h2” stands for what word(s)?
Acceptable Answer:heading two


Headings provide a fast way for your reader to understand your web page.
They provide sign posts to your content. They identify the structure that
is present in your webpage.


A level-one heading is a primary heading. It is the most important heading.
Below a level-one heading there may be a level-two heading, which would
be less important, and would identify a sub-part of the content related to
the previous level-one heading.


Heading levels range from 1 to 6, marked as

through

.


For h1 the start tag would be

and the end tag would be

.


Havingat the end is required. Each heading needs to be closed with

Free download pdf