1,html简介:
html:超文本标记语言,用来描述网页的一种标记语言。它使用标记标记标签来描述网页。
2,html标签:
@2,预格式文本,它保留了文本的空格和换行
<html>
<body>
<h> this is zhengzhangde
shabi
lallal
</h>
<pre>this is de ma yi ya
lallal
hello world lall
</pre>
</body>
</html>
@3,地址标签:
<html>
<body>
<p>李帅的地址是在哪呢?</p>
<h>
吉林省<br/>
长春市<br/>
吉林建筑大学城建学院<br/>
</h>
<p>汤姆猫的地址在:</p>
<a href="localhost">汤姆猫</a><br/>
</body>
</html>
它在浏览器中访问的结果为:
Paste_Image.png
当点击汤姆猫时,浏览器将会访问html所在地址的href中填写的地址。
@4,首字母缩写,反转文字
<html>
<body>
<abbr title="lishuaide shengzhi">ls</abbr>
<acronym title="lishuaide sheng zhi">lsz</acronym>
<bdo dir="rtl">what is your name</bdo>
</body>
</html>
<abbr>与<acronym>标签为首字母缩写标签,ls为title中所有单词的首字母缩写,当使用浏览器打开时,鼠标移动到缩写字母上,title将会展示被缩写的单词。
<bdo dir="rtl">此标签加上加上此标签上的内容,就会将该标签下的元素反转。
网友评论