<html>
<body>
<pre>
开始学习heml语法,预计时间:壹晚上
超文本标记语言
html tag
开始标签,结束标签
<html> 之间的文本描述网页
<body> 之间的文本是可见的页面内容
<h1>My First Heading</h1>标题
<p>My first paragraph.</p>段落
</body>
</html>
</pre>
<pre>
标题
HTML 标题(Heading)是通过 <h1> - <h6> 等标签进行定义的。
</pre>
<hd4>标题<hd4>
<pre>
段落
<p></p>
链接
</pre>
<a href="http://bulaoge.net/?xiaomenghuster" target="_blank">bulaoge</a>
<pre>
//注意加双引号
图像
</pre>
<img src="html.jpg" width="300" height="120"/>
<p>
//路径在当前html文件所在的文件夹下</br>
//也可以写电脑上的完整路径
</p>
body background="/i/eg_background.jpg" //背景图片
<pre>
html元素:从opening tag到closing tag的所有代码
空html元素
使用小写标签
html属性
<h1 align="center"> //拥有关于对齐方式的附加信息。
body bgcolor="yellow"> //拥有关于背景颜色的附加信息。
属性推荐小写
属性值加引号,单双都可以
name='Bill "HelloWorld" Gates'
html水平线
<hr />
html注释
<!-- This is a comment -->
html文本格式化
<b> bold
<strong> strong
<big>
<em> 强调
<i> italic
<small>
This text contains
<sub>subscript</sub>
This text contains
<sup>superscript</sup>
预格式文本
<pre> 保留空格和换行
</pre>
</body>
</html>
<body>
<pre>
开始学习heml语法,预计时间:壹晚上
超文本标记语言
html tag
开始标签,结束标签
<html> 之间的文本描述网页
<body> 之间的文本是可见的页面内容
<h1>My First Heading</h1>标题
<p>My first paragraph.</p>段落
</body>
</html>
</pre>
<pre>
标题
HTML 标题(Heading)是通过 <h1> - <h6> 等标签进行定义的。
</pre>
<hd4>标题<hd4>
<pre>
段落
<p></p>
链接
</pre>
<a href="http://bulaoge.net/?xiaomenghuster" target="_blank">bulaoge</a>
<pre>
//注意加双引号
图像
</pre>
<img src="html.jpg" width="300" height="120"/>
<p>
//路径在当前html文件所在的文件夹下</br>
//也可以写电脑上的完整路径
</p>
body background="/i/eg_background.jpg" //背景图片
<pre>
html元素:从opening tag到closing tag的所有代码
空html元素
使用小写标签
html属性
<h1 align="center"> //拥有关于对齐方式的附加信息。
body bgcolor="yellow"> //拥有关于背景颜色的附加信息。
属性推荐小写
属性值加引号,单双都可以
name='Bill "HelloWorld" Gates'
html水平线
<hr />
html注释
<!-- This is a comment -->
html文本格式化
<b> bold
<strong> strong
<big>
<em> 强调
<i> italic
<small>
This text contains
<sub>subscript</sub>
This text contains
<sup>superscript</sup>
预格式文本
<pre> 保留空格和换行
</pre>
</body>
</html>