zoukankan      html  css  js  c++  java
  • HTML 4.01 快速参考

    HTML 基础结构

    <html>
    <head>
    <title>文档的名字放在这里</title>
    </head>
    <body>
    此处可见文本
    </body>
    </html>

    HTML 文本元素

    <p>这是一个段落</p>
    <br> (换行符)
    <hr> (水平线)
    <pre>这是预格式化文本</pre>

    HTML 逻辑风格

    <em>This text is emphasized</em>
    <strong>This text is strong</strong>
    <code>This is some computer code</code>Physical Styles
    <b>This text is bold</b>
    <i>This text is italic</i>

    HTML 链接,锚和图像元素

    代码
    <a href="http://www.abc.com/default.asp">This is a Link</a>
    <a href="http://www.abc.com/default.asp"><img src="URL" alt="Alternate Text"></a>
    <a href="mailto:webmaster@example.com">Send e-mail</a>A named anchor:
    <a name="tips">Useful Tips Section</a>
    <a href="#tips">Jump to the Useful Tips Section</a>

    HTML 无序列表

    <ul>
    <li>First item</li>
    <li>Next item</li>
    </ul>

    HTML 有序列表

    <ol>
    <li>First item</li>
    <li>Next item</li>
    </ol>

    HTML 定义列表

    <dl>
    <dt>First term</dt>
    <dd>Definition</dd>
    <dt>Next term</dt>
    <dd>Definition</dd>
    </dl>

    HTML 表格

    <table border="1">
    <tr>
    <th>someheader</th>
    <th>someheader</th>
    </tr>
    <tr>
    <td>sometext</td>
    <td>sometext</td>
    </tr>
    </table>

    HTML 框架

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

    HTML 表单

    代码
    <form action="http://www.abc.com/default.asp" method="post/get">
    <input type="text" name="lastname"
    value
    ="Nixon" size="30" maxlength="50">
    <input type="password">
    <input type="checkbox" checked="checked">
    <input type="radio" checked="checked">
    <input type="submit">
    <input type="reset">
    <input type="hidden">
    <select>
    <option>Apples
    <option selected>Bananas
    <option>Cherries
    </select>
    <textarea name="Comment" rows="60" cols="20"></textarea>
    </form>

    HTML 实体

    &lt; 显示为 <
    &gt
    ; 显示为 >
    &#169; 显示为 ©

    HTML 其它元素

    <!-- 这是一个注释 -->
    <blockquote>
    文本引用了一些来源。
    </blockquote>
    <address>
    Address 1
    <br>
    Address 2
    <br>
    City
    <br>
    </address>
  • 相关阅读:
    Elastic-Job
    Redis之Ubuntu下Redis集群搭建
    设计模式之单例模式
    设计模式之简单工厂模式
    Java集合(一)HashMap
    数据结构和算法(四)归并排序
    数据结构和算法(三)希尔排序
    数据结构和算法(二)插入排序
    博客转移通知
    C语言回调函数总结
  • 原文地址:https://www.cnblogs.com/qianduan/p/1729523.html
Copyright © 2011-2022 走看看