HTML5基礎(一)——元素、屬性、格式化、樣式、連結、表格、列表、塊、布局,html5布局

來源:互聯網
上載者:User

HTML5基礎(一)——元素、屬性、格式化、樣式、連結、表格、列表、塊、布局,html5布局

開始學習html5,自己記錄學習筆記,基本上是代碼:
開發工具:Intellij IDEA或者HBuilder
首先學習的自然是html標籤語言,其實w3cschool中都有,我上傳了W3Cschool電子版可以下載看更全面。
第一天,基本標籤使用:

<!DOCTYPE html><html><head lang="en">    <meta charset="UTF-8">    <title>元素、屬性、格式化、樣式、連結、表格、列表、塊、布局</title>    <!--本機樣式連結-->    <link rel="stylesheet" type="text/css" href="mystyle.css">    <link rel="stylesheet" type="text/css" href="div.css">    <!--段落的樣式-->    <style type="text/css">        p{            color: aqua;        }    </style>    <!--id為span的樣式-->    <style type="text/css">        span{            color: blueviolet;        }    </style></head><body background="">    <h1 align="right">標題</h1>    <p >第一段</p>    <p style="color: bisque"><b>第二</b><br/><i>二段</i><strong>二段</strong><sub>e</sub>二段<ins>二段</ins><del>二段</del></p>    <!--超連結-->    <a href="http://www.ctrip.com/?allianceid=1328&sid=1643&ouid=000401app-&utm_medium=&utm_campaign=&utm_source=&isctrip=" target="_blank">旅遊</a>    <a href="http://www.ctrip.com/?allianceid=1328&sid=1643&ouid=000401app-&utm_medium=&utm_campaign=&utm_source=&isctrip=" target="_blank">     <img src="img/129.jpg" width="200px" height="200px" alt="html5logo">    </a><!--表格-->    <table border="1" cellpadding="20px" cellspacing="10xp" background="img/129.jpg">        <caption>表格</caption>         <tr>            <th>表頭1</th> <th>表頭2</th>         </tr>         <tr>            <td></td><td>儲存格2</td>         </tr>        <tr>            <td>儲存格1</td><td>儲存格2</td>        </tr>    </table><!--表格嵌套--><table border="1">    <caption>表格</caption>    <tr>        <th>表頭1</th> <th>表頭2</th>    </tr>    <tr>        <td>            <ul>                <li>1</li><li>2</li><li>3</li>            </ul>        </td>        <td>            <ol>                <li>1</li><li>2</li><li>3</li>            </ol>        </td>    </tr></table><!--無序列表--><ul type="circle">    <li>a</li>    <ul> <li>aj fa</li><li>aghlkaj</li></ul>    <li>b</li>    <ul> <li>aj fa</li><li>aghlkaj</li></ul>    <li>c</li></ul><!--有序列表--><ol type="circle">    <li>a</li>    <ul> <li>aj fa</li><li>aghlkaj</li></ul>    <li>b</li>    <ul> <li>aj fa</li><li>aghlkaj</li></ul>    <li>c</li></ol><!--其他列表--><dl>    <dt>helloworld</dt>    <dd>每個語言都要答</dd>    <dt>helloworld</dt>    <dd>每個語言都要答</dd>    <dt>helloworld</dt>    <dd>每個語言都要答</dd></dl><!--快--><p>大家好</p><h1>加好</h1><div id="divid">    <a>大家好div樣式</a></div><div id="p">  <p>這是個什麼測繪<span>hahhahhah</span></p></div></body></html>

樣式檔案:mystytle.css

h1{    color:red;}

樣式檔案:div.css

#divid{    color:yellow;}

這裡先學習了怎麼用,更多css樣式後面學習。

更多交流可加技術討論群:71262831
掃一掃,一起坐看風雲變幻。掃描下方二維碼關注it達人(也可搜尋:it達人)。
為您推送最新開發資源、分享it牛人職業發展經驗:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.