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