1,html简介:
html:超文本标记语言,用来描述网页的一种标记语言。它使用标记标记标签来描述网页。
2,html标签:
html标签可以附加属性例如<a bdcolor="yellow">。
3,html文档:
html文档包括html标签和纯文本,html文档也被称为网页。Web 浏览器的作用是读取 html 文档,并以网页的形式显示出它们。浏览器不会显示html标签,而是使用标签来解释页面的内容。
<html>
<body>
<p>
my Heading
</p>
<a>
my first panding
</a>
</body>
</html>
<html>标签里的文本是来描述网页,<body>里的文本是页面可见内容。
4,html文本格式:
@1,一些简单的文本格式:
<html>
<body>
<h>this text is public</h>
<br>
<big>this text is big</big>
<br>
<small>this text is samll</small>
<br>
<strong>this text is strong</strong>
<br>
<em>this text is emphlizeds</em>
<br>
<i>this is xie</i>
<br>
啦啦啦啦了
<sub>this is indext</sub>
<br>
啦快递哦<sup>this is sup</sup>
<br>
拉开啦啦啦
<ins>this is ins</ins>
<br>
<del>this is del</del>
</body>
</html>
<big>标签放大元素,<small>标签是缩小元素,<strong>加粗元素,<em>标签定义着重元素,<i>定义斜体字,sub和sup标签是定义上标识和下标识,<del>删除标签,<ins>插入标签。br标签回车换行。
上面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>
它在浏览器中访问的结果为:
当点击汤姆猫时,浏览器将会访问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">此标签加上加上此标签上的内容,就会将该标签下的元素反转。