HTML Document Basic Organization
<html> <head> <!--头部信息,网页相关属性和信息--> </head> <body> <!--主体,浏览器页面显示内容--> </body></html>
Example:
<html> <head> <title>这是网页标题(文件头部分)</title> </head> <body> 这是网页得内容部分,在浏览器窗口显示。 </body></html>
Common tags for HTML
1, Title
<html> <head> <title>This is the page title (File header section)</title> </head> <body> <H1>Title One</H1> <h2>Title II</H2> <h6>Title III</h6> </body></html>
The general form of the title , the value of n is the smaller the 1~6,n, the larger the font size
2, line wrapping label<br>
<html> <body> 百日依山尽<br>黄河入海流<br>欲穷千里目<br>更上一层楼 </body></html>
3, paragraph label <p align=**;
property Align is alignment, left,center,right
<html ; <body ; <p align =" Left "; Hello, May I ask who you are? </> <p align =; Hello, May I ask who you are? </> <p align =; Hello, May I ask who you are? </> </body ; </html ;
4, Horizontal segment
Size: The width of the horizontal line, measured in pixels
Width: The length of the horizontal line, default pixels, percent available, width=50% represents 50% of the page length.
Align: The horizontal line on its way, left,center,right.
Noshape: No shadow, if bit solid segment is set
Color: line segment Interior colors
<html> <body> <hr> <hr Align="center" size=> <hr Align="center" noshapesize=> <hr Align="center" width=" +" size=> <hr Align="center" width=" +" size= Color="#CC0000"> </body></html>
5,, font label <font></font>
Size: Used to set the font sizes, 1~7, the larger the value, the higher the font
Face: Used to set font type
Color: Font Color
<html> <body> <font color="#000099">It is difficult to meet,<br></font> <font color="#000099" face ="Italic gb_2312", size= "7">The east wind is powerless with flowers.</font> </body></html>
Common tags for font style:
<b>Content</b><!--set to bold blod--><u>Content</u><!--set to underline underline--><i>Content</i><!--set to italic italic--><sup>Content</sup><!--set to superscript,superscript--><sub>Content</Sub><!--set to subscript,subscript-->
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
HTML Basic Tags