HTML and CSS Reference
In-Depth Information
[*] With XHTML, <br> 's start and end are between the same brackets: <br /> . Browsers tend to be
very forgiving and often ignore extraneous things, such as the forward slash in this case, so it's per-
fectly OK to get into the habit of adding that end mark.
[ ] The paragraph end tag is being used more commonly now that the popular browsers support the
paragraph-alignment attribute. Headings
Besides breaking your text into divisions and paragraphs, you can also
organize your documents into sections with headings. Just as they do on
this and other pages in this printed book, headings not only divide and
entitle discrete passages of text, but they also convey meaning visually.
And headings readily lend themselves to machine-automated processing
of your documents.
There are six heading tags, <h1> tHRough <h6> , with corresponding end
tags. Typically, the browser displays their contents in, respectively, very
large to very small font sizes, and usually in boldface. The text inside the
<h4> tag typically is the same size as the regular text. [ Heading Tags,
4.2.1 ]
The heading tags also break the current text flow, standing alone on
lines and separated from surrounding text, even though there aren't any
explicit paragraph or line-break tags before or after a heading. Horizontal rules
Besides headings, HTML and XHTML provide horizontal rule lines that
help delineate and separate the sections of your document.
When the browser encounters an <hr> tag in your document, it breaks
the flow of text and draws a line across the display window on a new
line. The flow of text resumes immediately below the rule. [*] [ <hr>,
5.1.1 ]
Search WWH ::

Custom Search