HTML学习笔记

来源:互联网 发布:学生知我评价30字 编辑:程序博客网 时间:2024/06/14 11:02

参考文档http://www.w3.org/MarkUp/Guide/


1.title(主标题),出现在浏览器页眉

<title> This is my page</title>


2.heading(标题),出现在正文段落

<head>An important head</head>   不带字号


<h1>An important heading</h1>  带字号 从h1(最大)到h6


3.paragraph(段落)

<p>This is the first paragraph.</p>

  emphasize(强调,斜体)


4.images(图片)

<img src="peter.jpg" width="200" height="150"alt="My friend Peter">


5.hyperlink(超链接)

This a link to <a href="peter.html">Peter's page</a>.


6.list(列表)

unordered list:无序列表

<ul>
  <li>the first list item</li>

  <li>the second list item</li>

  <li>the third list item</li>
</ul>

ordered list:有序列表
<ol>
  <li>the first list item</li>

  <li>the second list item</li>

  <li>the third list item</li>
</ol>

ordered list with nested
<ol>
  <li>the first list item</li>

  <li>
    the second list item
    <ul>
      <li>first nested item</li>
      <li>second nested item</li>
    </ul>
  </li>

  <li>the third list item</li>
</ol>


<dl>
  <dt>the first term</dt>
  <dd>its definition</dd>

  <dt>the second term</dt>
  <dd>its definition</dd>

  <dt>the third term</dt>
  <dd>its definition</dd>
</dl>




0 0
原创粉丝点击