Basics of getting Started with HTML

Source: Internet
Author: User

First, the label overview

1.HTML (abbreviation of English Hyper Text Markup language) Chinese translation is "Hypertext Tag language", mainly through HTML tags on the text, pictures, sounds and other content in the Web page description.

2. Tags are divided into nested relationships and side-by-side relationships.

Nested relationships:

Tie Relationship:

Second, the basic label

1.html Tags: as a root node for all tags in the entire HTML.

2.head Tags: for storing title,meta,base,style,link,script and other labels.

2.title Tags: put in the head, let the page have a title of their own.

4.body tag: The body part of the page that holds all the labels on the page.

For example:

<! DOCTYPE html>

Third, the common label

1. Title Tag: HTML provides 6 levels of titles.

The H1 font is the largest, and then gradually decrements. Title tags help us make pages more semantic.

2. Paragraph tags: <p></p>, used to hold text paragraphs. By default, lines are automatically wrapped according to the size of the browser window.

NOTE: block-level elements cannot be placed in the P tag.

3. Horizontal line tag:

4. NewLine Label: <br/>, by default, the line will be changed from left to right. Force line wrapping via <br> tags.

5. Change the text format to label:

<b></b><strong></strong>: Bold: Recommended use of strong

<i></i> and <em></em>: Italic: Recommended Use EM

<s></s> and <del></del>: strikethrough: Recommended Use Del

<u></u> and <ins></ins>: underline: Using INS is recommended

6. Image tag: : Used to display an image on a page, the SRC attribute is a required attribute. The path used to specify the picture.

7. Link tag: <a href= "URL" ></a>: Hyperlink tag, used to implement hyperlink function. Mutual jumps between pages.

Note: Not only can you create text hyperlinks, but you can add hyperlinks to various page elements, like, tables, audio, video, and more.

8. Special character Tags: because many characters have a special meaning, we have no way to write directly, we need to rely on some special tags to achieve.

For details, see:

9. Note Tags:<!--comment content-->, and will not appear in the browser window, but as part of the HTML document.

Basics of getting Started with HTML

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.