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
>: Greater than sign (>)
<: Less Than (<)
": Quotation marks (")
®: Registered trademark (®)
©: Copyright symbol (C)
&:& 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