HTML and CSS Reference
In-Depth Information
DOCTYPE
tag
three
paragraphs
on Web
page
text displayed in
browser title bar
start <body>
tag
HTML tags to
insert horizontal
rules
start paragraph
of text
end
paragraph
of text
end body and
HTML tags
paragraph of
normal text
three
paragraphs
on Web
page
paragraph
of bold text
(a) HTML
tags
two horizontal
rules
paragraph of
extra-large text
(b) Resulting Web page
Figure 1-8 A Web page is a file that contains both text and HTML tags.
HTML Elements
HTML combines tags and descriptive attributes that define how a document should
appear in a Web browser. HTML elements include headings, paragraphs, hyperlinks, lists,
images, and more. HTML element syntax is as follows:
HTML elements begin with a
start tag / opening tag
HTML elements finish with an
end tag / closing tag
element content is everything inserted between the start and end tags
Some HTML elements have
The
empty content (e.g., <br /> or <hr />)
Empty elements are
closed in the start tag (use space-/ to close as in <br />)
Most HTML elements can have
attributes
For example, to specify a paragraph of text on a Web page, you would enter the following
HTML code:
<p>This is a paragraph of text.</p>
 
Search WWH ::




Custom Search