32
CHAPTER 2. HTML
2.6
Headings
There are six levels of headings; from the largest h1, to the smallest h6. Their
general form is
CONTENT
where CONTENT is typically text and/or images. The style attribute can be
used to specify the font size, background color, and text color.
2.7
Text Separation
HTML offers several elements that can be used to separate text on a page.
When these elements are combined with CSS, they allow the web page designer
to specify the style of different sections of the webpage.
The span element is used to group together some part of a line (or lines) of
text. It has the form:
CONTENT
where the CONTENT is typically text and/or images. The span element does
absolutely nothing by itself. It only becomes useful when combined with CSS,
as it allows one to apply a style attribute to a short inline segment of words
and/or images as in
See the blue box
around a single word.
The span element was introduced as a hook on which to attach CSS to small
segments of text.
The br elemeent is used to insert line breaks into the page. It has the form:
and observe that it does not have a close tag. Another way to break lines is to
insert a horizontal rule, which is a line which stretches all or part way across the
page and is used to visually separate parts of a page. These rules are inserted
using the
tag which also does not have a close tag.
Paragraphs are inserted into a page using the
CONTENT
Php Web Hosting Introduction to Interactive Web Design Php Hosting
|
|
|
|
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved. |