html结构,第一节

第1步:

新建一个txt文件,重命名为index.html;

第2步:

打开方式:记事本,输入下面代码:

<html>
<head>
    <title>我的第一个网页</title>
</head>
<body>
hello world!
<p>html文档的结构,只能有一个根标记;
开始标记要匹配结束标记;
属性:必须在开始标记中,属性值建议使用单引号、双引号包含</p> <!-- html注释,不会显示出来--> </body> </html>

 第3步:

换一种打开方式:用ie,firefox,chrome

显示如下:

4.我的超链接

<html>
<head>
    <title>我的超链接</title>
</head>
<body>
    <a href="http://www.baidu.com">www.baidu.com</a><br/>
    <a href="11.rar" target="_self">下载</a><br/>
    <!-- 属性:_blank parent top-->
</body>
</html>

 显示

 

posted @ 2015-06-17 22:41  影分身  阅读(234)  评论(0编辑  收藏  举报