html介绍

1.HTML 标题

  HTML 标题(Heading)是通过 <h1> - <h6> 等标签进行定义的,其中字体由大到小依次递减只有6级1-6

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>heading</title>
</head>
<body>
    <h1>This is a Lichji</h1>
    <h2>This is a Lichji</h2>
    <h3>This is a Lichji</h3>
    <h4>This is a Lichji</h4>
    <h5>This is a Lichji</h5>
    <h6>This is a Lichji</h6>
</body>
</html>

2.HTML 段落

段落是通过 <p> 标签进行定义的。

<p>This is a One</p>
<p>This is One</p>

3.HTML 链接

HTML 链接是通过 <a> 标签进行定义的,href 属性中指定链接的地址.

<a href="http://www.baidu.com.cn">This is a link</a>

4.HTML 图像

HTML 图像是通过 <img> 标签进行定义的,图片名称和长宽可以通过属性设置。

<img src="jd.jpg" width="100" height="150" alt="open" />

 

posted on 2018-11-02 07:47  lfylcj  阅读(121)  评论(0编辑  收藏  举报

导航