Java Web - HTML 常用標籤

來源:互聯網
上載者:User

標籤:bsp   ima   com   網頁   html   enter   介紹   .com   type   

1.HTML head, title, body 標籤

其中 meta 中的keywords是為了快速的讓搜尋引擎找到

<html>    <head>        <title>這是我的第一個網頁檔案</title>
       <meta name="Generator" content="EditPlus">
       <meta name="Keywords" content="java,j2ee">
       <meta name="Description" content="">
</head> 

       <body> 這是第一個網頁檔案,測試Body標籤 </body>

</html>

 2.HTML br, p, h1,ul,ol標籤

<html>    <head>        <title>文字標籤測試</title>    </head>    <body>        開始第一個網頁,<br/>    ----換行        準備介紹文本標記        <p align="center">    ----段落        呼呼,我換行了        </p>        另一行        <h1>這是一個h1的標籤</h1> ---標題1        <h2>這是一個h2的標籤</h2> ---標題2        <h3>這是一個h3的標籤</h3>        <h4>這是一個h4的標籤</h4>        <h5>這是一個h5的標籤</h5>        <ul>                     --unorder list            <li>唐僧</li>            <li>悟空</li>            <li>八戒</li>            <li>沙僧</li>        </ul>        <ol>                     --order list            <li>劉德華</li>            <li>張學友</li>            <li>郭富城</li>            <li>黎明</li>        </ol>    </body></html>

 

  3. HTML dl, dt, dd標籤

<html>    <head>        <title>練習1</title>    </head>    <body>        <ul>            <li>                <h2>網站首頁</h2>                <ul>                    <li>機構設定</li>                    <li>機構設定</li>                    <li>機構設定</li>                    <li>機構設定</li>                </ul>            </li>            <li>網站首頁</li>            <li>網站首頁</li>            <li>網站首頁</li>            <li>網站首頁</li>        </ul>        <h2>質監動態</h2>        <ul>            <li>xxxxxxx</li>            <li>xxxxxxx</li>        </ul>        <dl>                        ---data list            <dt>質檢動態</dt>        ---data type            <dd>關於xxxxx的文章</dd> ---data detail            <dd>關於ddddd 的文章</dd>        </dl>    </body></html>

 

Java Web - HTML 常用標籤

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.