XHTML Tutorial - commonly used labels
Like an article, we also Duanlabanmeng website, but also important level of the title. This section will be introduced XHTML achieve title, the commonly used functions, such as paragraphs signed
The handbook after more closely linked, we recommend that you read from the first quarter onwards.
Heading to label <h1> <h6>
Heading definition, we can make use of to <h1> <h6> these labels, labelling the termination of their counterparts were </ h1> to </ h6>, <h1> name to the order of <h6> decreased important and gradually reduce. Browser will be in the heading above and below the all automatically vacated his party.
Paragraphs labels <p>
Definition of the use of paragraphs and <p> </ p>, and In "p> </ p> between the content will be identified as a paragraph like we usually refer to it as a" natural paragraph. " With a similar title, the browser will be the beginning of the paragraphs before and after the Canadian delegation blank.
Newline labels <br /> (<br />)
When we want to separate from his text but do not want to write another paragraph from a natural when we can be applied <br /> tag. <br /> Tag is an empty label to be added a "/" to comply with the requirements of XHTML.
Level segmentation line labels <hr /> (<hr>)
Achieving the level of segmentation of the label is <hr />. And <br /> labels, <hr> is an empty label, XHTML In order to comply with the rules, coupled with a need to "/." (Below is a separate line)
Notes <! - ->
Rational use of the four described above label you can browse Web pages that users of the level of clear, and notes that you can read their own web pages in the source code level, a clear sense, not puzzled. In "! - And -> Notes between what is the content, they will not be shown on the Web. See how we practice examples in the following inserted in the Notes.
Practice examples
We now open in the preservation of a website and practice to learn from this section several important labels. Will be <body> </ body> in the "This is my first website <b> </ b>." Removed, enter the following:
<html>
<head>
I <title> this page is the title of </ title>
</ Head>
<body>
<h1> Service announcements </ h1 ><!-- practice the use of the title, look at the name is not changed in a big way? -->
<hr /> <! - Level segmentation line, do not forget that the "/" ->
<h2> I now facing the country's primary and secondary school students and parents comrades provide the following services: </ h2>
<! - No. 2 title, than it is to look at the name on the 1st Title small ->
<h3> Student services </ h3>
<p>
Cold summer and write operations (math does not guarantee that there is nothing wrong and that, the language does not guarantee that there Xizi, English operations you find others Bar)
<br /> Help bullied students below the fourth grade, special body should be subject to fees.
<br /> Posing as parents will help parents.
</ P ><!-- above is the content of a paragraph ->
<h3> VIP services </ h3>
<p> Who buy all three services are automatically upgraded to VIP. We will be free to make your personal home page, <br />
XHTML fully consistent with the W3C standards and ISO2009 ~. </ P>
<! - Here website Although still relatively distinct levels,
But you are not really think it is very difficult to look at the interface and simple? <br />
For example, firms in line with no gap between, on the 1st title too.
On the definition page appearance in the later method will be described in the CSS tutorial. <br />
Forget that the main content, the Notes will not appear on the website, so we can play in many of nonsense here ->
</ Body>
</ Html>
Preservation of the revised website, check your web pages and the same completion.
Enter the next section: XHTML Tutorial - text formatting and special characters
