您现在的位置: 365建站网 > 建站教程 > html教程 > HTML 4.01 快速参考

HTML 4.01 快速参考

此节有 322 人学习过     参与评论

来自 365jz 的 HTML 快速参考。可以打印它,以备日常使用。

HTML Basic Document

</>code

  1. <html>
  2. <head>
  3. <title>Document name goes here</title>
  4. </head>
  5. <body>
  6. Visible text goes here
  7. </body>
  8. </html>

Text Elements

</>code

  1. <p>This is a paragraph</p>
  2. <br> (line break)
  3. <hr> (horizontal rule)
  4. <pre>This text is preformatted</pre>

Logical Styles

</>code

  1. <em>This text is emphasized</em>
  2. <strong>This text is strong</strong>
  3. <code>This is some computer code</code>

Physical Styles

</>code

  1. <b>This text is bold</b>
  2. <i>This text is italic</i>

Links, Anchors, and Image Elements

</>code

  1. <a href="http://www.example.com/">This is a Link</a>
  2. <a href="http://www.example.com/"><img src="URL"
  3. alt="Alternate Text"></a>
  4. <a href="mailto:webmaster@example.com">Send e-mail</a>A named anchor:
  5. <a name="tips">Useful Tips Section</a>
  6. <a href="#tips">Jump to the Useful Tips Section</a>

Unordered list

</>code

  1. <ul>
  2. <li>First item</li>
  3. <li>Next item</li>
  4. </ul>

Ordered list

</>code

  1. <ol>
  2. <li>First item</li>
  3. <li>Next item</li>
  4. </ol>

Definition list

</>code

  1. <dl>
  2. <dt>First term</dt>
  3. <dd>Definition</dd>
  4. <dt>Next term</dt>
  5. <dd>Definition</dd>
  6. </dl>

Tables

</>code

  1. <table border="1">
  2. <tr>
  3. <th>someheader</th>
  4. <th>someheader</th>
  5. </tr>
  6. <tr>
  7. <td>sometext</td>
  8. <td>sometext</td>
  9. </tr>
  10. </table>

Frames

</>code

  1. <frameset cols="25%,75%">
  2.   <frame src="page1.htm">
  3.   <frame src="page2.htm">
  4. </frameset>

Forms

</>code

  1. <form action="http://www.example.com/test.asp" method="post/get">
  2. <input type="text" name="lastname"
  3. value="Nixon" size="30" maxlength="50">
  4. <input type="password">
  5. <input type="checkbox" checked="checked">
  6. <input type="radio" checked="checked">
  7. <input type="submit">
  8. <input type="reset">
  9. <input type="hidden">
  10. <select>
  11. <option>Apples
  12. <option selected>Bananas
  13. <option>Cherries
  14. </select>
  15. <textarea name="Comment" rows="60"
  16. cols="20"></textarea>
  17. </form>

Entities

</>code

  1. &lt; is the same as <
  2. &gt; is the same as >
  3. &#169; is the same as ©

Other Elements

</>code

  1. <!-- This is a comment -->
  2. <blockquote>
  3. Text quoted from some source.
  4. </blockquote>
  5. <address>
  6. Address 1<br>
  7. Address 2<br>
  8. City<br>
  9. </address>

Source : https://www.365jz.com/article/19333


如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛

发表评论 (322人查看0条评论)
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
昵称:
最新评论
------分隔线----------------------------
html教程目录

快速入口

· 365软件
· 杰创官网
· 建站工具
· 网站大全

其它栏目

· 建站教程
· 365学习

业务咨询

· 技术支持
· 服务时间:9:00-18:00
365建站网二维码

Powered by 建站教程 RSS地图 HTML地图

copyright © 2013-2024 版权所有 鄂ICP备17013400号