2014 Sinsing full interpretation of HTML section II

Source: Internet
Author: User

In the previous section we introduced the writing of the HTML file and several tags, and then we came to know a few other tags, here we mainly introduce the head tag and the text label.

Head tag ************************

1. The so-called head, is the meaning of the header, it can contain a number of sub-tags, its content will not be displayed in the text area of the browser, but its role is very extensive, the following we focus on its sub-tags.

The 2.head tag can contain the title tag, which we have already seen, and the title tag is what is displayed in the browser's title bar, as we said in the last section.

3.link tags can be used to import external resource files, usually used to import CSS files and JS files, for the CSS and JS, we will introduce later, here first give an example of importing CSS:

<Head>        <Linkrel= "stylesheet"type= "Text/css"href= "Xinxing.css"></Head>

4. It can also use the style tag to build CSS, but I am not very recommended to do so, which will make the file too bloated.

5.meta tag, it refers to the metadata, so-called metadata, is can be used to describe the Web page of some information, such as the specified encoding, author and so on, the following example of the specified page encoding format using GBK:

<Head>        <Metahttp-equiv= "Content-type"content= "text/html"; CharSet= "GBK"> </Head>

For example, below we define a keyword that facilitates search engines to crawl our pages:

    <Head>        <Metaname= "keywords"content= "Sinsing">    </Head>

6.script element, which is used to load JavaScript scripts, we'll talk about later.

Body Tag ***************

1. We explained the head tag above, then we'll explain the body tag, the body tag content is the main browser display part.

2. In addition to a few of the tags we explained above, the following tags are the body's sub-label, do not introduce each.

Title *********************

1. We use the contents of the

2. Bidding clubs makes the text thicker and bigger, but don't use the title simply to make the text thicker and bigger.

3. The title tag appears in the body tag, as it can be displayed directly in the browser.

Paragraph *********************

1. As we have said before, we use the P tag to denote the paragraph.

2. We can use <strong></strong> tag pairs or <b></b> tag pairs to make the text bold, with <em></em> tag pairs or <i>< /i> label pairs to make text italic.

3. In addition we can use sub tags to define the subscript word, with the SUP tag to define the superscript word, with the INS tag to define the insertion word, with the Del tag to define the deletion word.

4. Here is a code example:

<Body>Previous Price:<del>400 USD</del>Current Price:<Strong>200 USD</Strong></Body>

5. In addition, we can use <br/> to express a line, of course, the old version of the book will also use <br>, I would recommend the former.

Summary ***************

1. In this section we recognize two more important tags, one for head and the other for text tagging.

2. Examples are relatively simple and hopefully readers can follow suit.

2014 Sinsing full interpretation of HTML section II

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.