Something about html

来源:互联网 发布:java参数&传递 编辑:程序博客网 时间:2024/03/29 20:43
<html> :This tag tells the browser that it's the begining of the HTML document.</html> : This tag tells the browser that is's the end of the HTML Document.<head></head> : These tags mean that the words between them are the head information of the HTML document,while will not be seen.<title></title> : These tags mean the title of the HTML document,while will be seen at the title of the browser.<body></body> : The words between the are the body of the HTML document.<b></b> : The words between the tags will be bold words in the browser.The tag which doesn't need another tag to match it is an empty tag,such as <br />.In html4 , we use / after the tag means that the tag is an empty tag.The property of the tag:We use it like this <body text="red"></body> or <body bgcolor="blue"><body text="red" bgcolor="blue"></blue>Notice that there isn't any comma between the properties<p></p> : Paragraph tag.<h1/2/.../6></h1/2/.../6> : Title tag. <h3 align = "center"></h3> : The title tag means that setting the align of the words in the center.<br /> : Insert a space line , it's an empty tag.<hr> : Insert a horizontal line ,it's also an empty tag.<!-- Note words --> : We can use this tag to add note.<EMBED SRC="SOUNDFILENAME" AUTOSTART=true><EMBED SRC="VIDEOFILENAME" AUTOSTART=true>To insert a sound file or a video file.<font></font> : The most important property of these tags are "size","face" and "color" . "size" if the word size, face is the style .eg: <font size="+1" family="Times" color="red"><strong></strong> : The text is strong.<big></big> : The text is big.<small></small> : The text is small.<em></em> : The text is emphasized.<i></i> : The text is italic.<sub></sub> : The text is subscript.<sup></sup> : The text is superscript.<del></del> : Delete text.<ins></ins> : Insert text.<var></var> : it's the computer variable.<blockquote></blockquote> : The text is blockquote.<a></a> : Insert a hyperlink.eg : <a href="http://www.baidu.com"></a><img> : Insert a Imageeg : <img border=0 src="./SAM_0504.JPG">     <img border=0 src="./SAM_0504.JPG" width=300 height=800 alt="lover"><a name="C4"></a><a href="#C4">Skip to C4</a> :Anchor tags  <a href="mailto:zhao@hotmail.com">Contact us</a>:We can use this tag to send Email.<table></table> : To draw out a table.<table border=2><caption>My table</caption>:<caption></caption>:means the title.<tr><td></td><td></td>:<tr></tr> means the rows</tr><tr><td></td>:<td></td> means the cols<td></td></tr></table><ul><li>elem1</li><li>elem2</li><li>elem3</li>:An unordered list begins with <ul> and ends up with </ul> <li>elem4</li></ul><ol><li>elem1</li><li>elem2</li><li>elem3</li>:An ordered list begins with <ol> and ends up with </ol><li>elem4</li></ol><img border=0 src="SAM_0504.JPG" width=450 height=500 usemap="#picmap"><map id="picmap" name="picmap"><area shape="rect" coords="0,0,450,500" alt="lover" href="http://www.baidu.com"></map>To add a anchor to an image.<form></form> : To write a form<input type="text" name="">: To write a text box<input type="password" name=""> : To write a code box<input type="radio" name="sex" value="male" checked>: To write a single choice box<input type="checkbox" name="bike">: To write a checkbox<select name="cars"><option value="audi">audi</option>: To write a menu<option value="flat">flat</option></select><textarea width=300 height=100></textarea>: To write a textarea<input type="button" name="" value=""> : To write a button<input type="submit" name="" value="">: To write a submit button<input type="reset" name="" value="">: To write a reset button<head><bgsound src="filename" loop=-1></head>: To insert backgroud music<html><frameset cols="20%,*"><frame src="frame1.html"><frameset rows="50%,50%"><frame src="frame2.html">:To do division framework<frame src="frame3.html"></frameset></frameset></html>



原创粉丝点击