HTML Common Tags

Source: Internet
Author: User

1.XHTML Basic Structure

<title> title </title>

<body> Web content </body>

2.head the following common tags:

1) <base>:

2) <link>:

3) <meta>:

<meta http-equiv= "Content-type" content= "text/html;charset=utf-8"/> defined format, no less

<meta http-equiv= "Refresh" content= "2;url=http://...."/> means auto-jump after 2

<meta name= "Author" content= ""/>

<meta name= "description" content= "... "/>

<meta name= "keyword" content= "... "/>

Title: Generally no more than 80

keywords: can be searched by the search engine, generally not more than 100

Description: Generally no more than 200

4) <script>:

5) <style>:

6) <title>: Is the head part must be the only necessary element

Common tags under 3.body:

1)

2) <p></p>: content is displayed as a paragraph

Align (left,center,right): arrangement of prescribed formats

  3) <br/>: For line breaks

4) <pre></pre>: Pre-formatted label

5) <i></i>,<b></b>,<u></u>,<strong></strong>,<em></em >,<SUB></SUB>,<SUP></SUP>: Various formats are italic, bold, underline, bold, italic, subscript, superscript

6) <font></font>: Font label

Color: Three ways RGB (255,255,255), #FFFFFF, red

Face: Arial, black body, etc.

size:1,2 .... 7, default is 3

7) <ul></ul>: Unordered list, middle with <li></li>, type= "disc/circle/square"

8) <ol></ol>: With sequence list, middle with <li></li> representation, type= "1/a/a/i/i/"

  9)

Align: Controls the alignment of horizontal lines, center,left,right

NoShade: Control HR element display color as solid color, noshade

Size: Controls the height of the horizontal line, pixels (px)

Width: Controls the length of the horizontal line, pixels (px), percent (%)

4. Special character:& start

&GT: Greater than sign (>)

&lt: Less Than (<)

&quot: Quotation marks (")

&reg: Registered trademark (®)

&copy: Copyright symbol (C)

&amp:& symbols

5.<a></a> hyperlinks

1) href: value URL, which indicates the target URL of the link

Relative path: In relation to the current position,./Current Path,.. /upper-level target path

Absolute path: Absolute file path, <a href= "Mailto:[email protected]" >[email protected]</a>

2) Target:_blank (will keep the original page, open the new), _self (overwrite the original page), _parent (open in the parent frame), _top (open in the entire window), FrameName (open in the specified frame)

6.

1) SRC: URL address to insert Picture

2) alt: Define a series of replaceable, alternate text for the picture

3) Width: Specifies the width of the image

4) Height: Specify image Height

HTML Common Tags

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.