HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 2. CONTENT VS MARKUP 17


a matching slash tag.


The content that appears between the start and end tags is the heading.
The start and end tags are the markup.


This is a level-one heading.


Warning: Do not use h1 h2 h3 simply for their presentational value to create
different sizes of text. Use css for presentational things. Use h1 h2 h3 to
describe the structure of your document.


2.2.2 p: Paragraphs


Paragraphs are the foundational unit of text content. As in regular writing,
each paragraph is focused. And each paragraph is short enough to look
inviting. But we are not here to teach you good writing skills. That is
beyond our scope. Instead, we acknowledge that paragraphs are important
and we identify them by using the proper markup.


Exam Question 11(p.337):The HTML tag “p” stands for what word(s)?
Acceptable Answer:paragraph


is the structural markup that introduces a paragraph.

is optional
at the end of the paragraph.

This is a paragraph.


This is a paragraph.

You can use theptag to identify paragraphs within your document. Typi-
cally this creates space between the paragraphs.


Paragraphs cannot be nested. (You cannot have one paragraph within an-
other paragraph.)


2.2.3 br: Break


Each paragraph starts on a new line. But sometimes we want to start a new
line while remaining in the same paragraph.


Exam Question 12(p.337):The HTML tag “br” stands for what word(s)?
Acceptable Answer:break


One example of this might be writing poetry or verse. For example, here is
part of a poem I remember from my childhood (by Robert Frost).

Free download pdf