html基礎,寫代碼時的總結等---ShinePans,html---shinepans

來源:互聯網
上載者:User

html基礎,寫代碼時的總結等---ShinePans,html---shinepans

index.html:

<html><meta http-equiv="content-type" content="text/html;charset=UTF-8"/>  <head><body> <center><!--空格  --><!--img src="與html檔案位置相同或者本地url或者網路url" width="xxpx為邊框寬度" style="boder:1px為css布局 solide red 邊框顏色"--><table background="flowers.jpg" width="90%" border="0px" height="80px" cellspacing="0px"><tr><td><h1><font color="white">ShinePans的測試網站</font></h1><td><td align="right"><a href="myclass.html">查看我的課表</a> </td></tr></table><!--tr標示一行--> <!--td代表一列--> <!--bgcolor背景顏色--><!--Table 1測試--><table background="flowers3.jpg" border="1px" width="90%" height="500px"> <!--頁面佔比--><tr ><td><font color="white">第一行</font></td><td><font color="white">第二列</font></td><td>第三列</font></td><td>第四列</font></td></tr> <tr><td>第二行</font></td><td align="left">居左</font></td><td align="center">置中</font></td><td align="right">居右</font></td></tr> <tr><td>第三行</font></td><td>a11</font></td><td align="center">a12</font></td><td align="right">a13</td></tr> <tr><td>第四行</font></td><td>a21</font></td><td align="center">a22</font></td><td align="right">a23</font></td></tr> <tr><td>第五行</font></td><td>a31<</font>/td><td align="center">a32</font></td><td align="right">a33</font></td></tr> </table><!--table 2 測試--><table cellspacing="0px" bordercolor="#FFD2D2" bgcolor="#BBFFFF" border="2px" width="90%" height="300px"><!--五行--><!--solspan="3"橫跨三行--><tr><td align="center" colspan="3">欄目</td> </tr><tr><td align="center">花</td><td align="center">風景</td><td align="center">人物</td></tr><tr><td align="center" rowspan="3"><img src="flower4.jpg" width="300px"></td><td align="center" rowspan="3"><img src="view.jpg" width="300px"></td><td align="center" rowspan="3"><img src="girl.jpg" width="300px"></td></tr><tr></tr><tr></tr><table/><br/><br/><br/>_________________________________________________________<br/><br/><img src="flowers.jpg" width="400px" style="border: 0px solide red" alt="Flowers"/><br/><a href="http://www.baidu.com">開啟百度</a>  <a href="mailto:shinepans@live.com">shinepans@live.com <a/></center></body></head></html>

效果:




myclass.html:

<html><meta http-equiv="content-type" content="text/html;charset=UTF-8"/>  <head><body><center><h1><font color="#3C3C3C">潘尚的課表:</font></h1><table background="girl.jpg" cellspacing="0px" border="2px" width="90%" height="400px"><tr align="center"><th><font color="white"><b>星期一</font></th><th><font color="white">星期二</font></th><th><font color="white">星期三</font></th><th><font color="white">星期四</font></th><th><font color="black">星期五</font></th></tr><tr align="center"><th><font color="white">None</font></th><th><font color="white">作業系統(2103)</font></th><th><font color="white">演算法分析(2307)</font></th><th><font color="white">電腦網路(2307)</font></th><th><font color="black">編譯原理(2103)</font></th></tr><tr align="center"><th><font color="white">電腦網路(2103)</font></th><th><font color="white">編譯原理(2103)</font></th><th><font color="white">None</font></th><th><font color="white">電腦群組成原理(2307)</font></th><th><font color="black">作業系統2103</font></th></tr><tr align="center"><th><font color="white">演算法分析(2307)</font></th><th><font color="white">電腦群組成原理(2307)</font></th><th><font color="white">物件導向C++(A605)</font></th><th><font color="white">None</font></th><th><font color="black">電腦網路(A603)</font></th></tr><tr align="center"><th><font color="white">物件導向C++(3203)</font></th><th><font color="white">None</font></th><th><font color="white">物件導向C++(A605)</font></th><th><font color="white">None</font></th><th><font color="black">電腦網路(A603)</font></th></tr></table><br/><br/><h1>&copy Copyright@PanShang 2014-10-29</h1></center></body></head></html>

效果:




總結:


在寫代碼時,有大片的代碼需要更改時,有很多重複的部分,可以用 replace 來快速更改而不需要一個一個去更改



有沒有完全自學成才的html,麻煩總結一下經驗唄,小妹不勝感激比如輸入代碼時鍵盤操作技巧

高手自是不敢當,但是如果要學HTML的話,個人認為,可以看下視頻教程,學起來直觀很多,而且相當於還有老師給你講,還有就是,HTML的入門學習,應該是比較容易的了。
至於說到什麼“輸入代碼時鍵盤操作技巧”,這個談不上吧。要什麼就寫什麼唄。如果說有什麼“技巧”的話,你可以在一些軟體中寫代碼,那就會方便很多了(比如說在dreamweaver裡寫代碼的話,有很多提示功能,可以加快輸入速度,也便於學習,很不錯)。
大概一個好的HTML的教程,裡面的技巧呀,注意的事項之類的問題應該都會說到,就不用在這說什麼了。
總之,如果要學HTML的話(只要不是想學到太高的水平),應該是比較好實現的了,大概就是每人用的時間長短的問題了,大膽放心的去學就好了。
 
常用的HTML代碼有那些

呵呵, 網上看到的,比較全,並不是我總結的,特此申明一下。

<html></html> 建立一個HTML文檔

<head></head> 設定文檔標題和其它在網頁中不顯示的資訊

<title></title> 設定文檔的標題

<h1></h1> 最大的標題

<pre></pre> 預先格式化文本

<u></u> 底線

<b></b> 黑體字

<i></i> 斜體字

<tt></tt> 打字機風格的字型

<cite></cite> 引用,通常是斜體

<em></em> 強調文本(通常是斜體加黑體)

<strong></strong> 加重文本(通常是斜體加黑體)

<font size="" color=""></font> 設定字型大小從1到7,顏色使用名字或RGB的十六進

制值

<BASEFONT></BASEFONT> 基準字型標記

<big></big> 字型加大

<SMALL></SMALL> 字型縮小

<STRIKE></STRIKE> 加刪除線

<CODE></CODE> 程式碼

<KBD></KBD> 鍵盤字

<SAMP></SAMP> 範例

<VAR></VAR> 變數

<BLOCKQUOTE></BLOCKQUOTE> 向右縮排

<DFN></DFN> 述語定義

<ADDRESS></ADDRESS> 地址標記

<sup></SUP> 上標字

<SUB></SUB> 下標字

<xmp>...</xmp>等寬字型(在檔案中空白、換行、定位功能有效)

<plaintext>...</plaintext>等寬字型(不執行標記符號)

<listing>...</listing> 固定寬度小字型

<font color=00ff00>...</font>字型顏色

<font size=1>...</font>最小字型

<font style ='font-size:100 px'>...</font>無限增大

◆◆◆◆◆◆◆◆◆◆◆◆◆◆《〈格式標誌〉》◆◆◆◆◆◆◆◆◆◆◆◆

<p></p> 建立一個段落

&......餘下全文>>
 

聯繫我們

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