Something about html

本文深入解析HTML中关键标签的功能与用法,包括但不限于:HTML文档结构、标题、正文、文本样式、链接、图片、表格、列表、表单、表单元素、多媒体插入、表格布局、注释、样式应用等,旨在帮助开发者熟练掌握HTML基础。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<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 Image
eg : <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>



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值