ASP.NET學習筆記(001):HTML

來源:互聯網
上載者:User

標籤:瀏覽器   伺服器   javascript   程式設計語言   jquery   

001、製作一個完整的網站,需要三方面的內容:

前端:html、css、javascript(jquery)

資料庫:sql server

動態部分:.NET(環境)、C#(程式設計語言)、Visual Studio(開發工具)

 

002、在IIS伺服器上,靜態網頁(html)會直接被IIS發送到瀏覽器端;而動態網頁(aspx)則是由IIS將aspx交由.net進行處理,最後由IIS返回HTML的內容。

 

003、分清3個概念:html的標籤、標籤的屬性、標籤的屬性值

650) this.width=650;" title="image" style="border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/73/CE/wKiom1YIJxajH6NiAABKJvrYj-A526.jpg" width="282" height="172" />

 

4、在HTML中,空格用   表示;版本符號用 © 表示。

 

5、在HTML中,注釋用<!--  -->表示;在CSS中,注釋用/**/表示;在javascript中,注釋用//表示。

 

6、在HTML中,我以前知道<br/>是換行、<hr/>是水平線,但是我並不知道<hr/>還可以設定size(相當於高度)、width(寬度)、align(預設是置中對齊)屬性。

<div style=";height:200px;margin:0px auto;border:dashed 1px red;">    
    <hr size="20" ;120px"/>    
</div>

650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/73/CE/wKiom1YILpeC3iWRAABBKZIB1EQ131.jpg" width="244" height="210" />

 

7、雖然有些HTML標籤有自己的屬性用來設定標籤的外觀,但是在實際的開發過程中,不會用它們自己的屬性去做外觀處理,而是用CSS。

ol標籤有自己的type樣式。

<ol type="1">    
    <li>Order List</li>    
    <li>Order List</li>    
    <li>Order List</li>    
</ol>   
<ol type="a">    
    <li>Order List</li>    
    <li>Order List</li>    
    <li>Order List</li>    
</ol>   
<ol type="A">    
    <li>Order List</li>    
    <li>Order List</li>    
    <li>Order List</li>    
</ol>   
<ol type="i">    
    <li>Order List</li>    
    <li>Order List</li>    
    <li>Order List</li>    
</ol>   
<ol type="I">    
    <li>Order List</li>    
    <li>Order List</li>    
    <li>Order List</li>    
</ol>

 650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/73/CE/wKiom1YILpehTp5EAACC71kgSd0892.jpg" width="134" height="310" />

 

對於ul而言,circle表示空心圓,disc表示實心圓,square表示方塊。

<ul type="circle">     
    <li>Unordered List</li>    
    <li>Unordered List</li>    
    <li>Unordered List</li>    
</ul>    
<ul type="disc">    
    <li>Unordered List</li>    
    <li>Unordered List</li>    
    <li>Unordered List</li>    
</ul>    
<ul type="square">    
    <li>Unordered List</li>    
    <li>Unordered List</li>    
    <li>Unordered List</li>    
</ul>

650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/73/CE/wKiom1YILpfw1N1WAACSk540ZJ8616.jpg" width="182" height="244" />

 

8、在Form表單中,有get和post兩種方式傳輸資料:其中,get適合於傳Id、類型、標識等資料量小、安全係數低的資料,速度較快;而post則適合傳輸資料量較大、安全係數大的資料,但速度比較慢。

650) this.width=650;" title="點擊查看源網頁" src="http://images.cnitblog.com/blog/594665/201312/28231805-c20c94f3bf024674b643eee5b2654b5c.png" height="300" alt="28231805-c20c94f3bf024674b643eee5b2654b5" />

9、在存在選項按鈕時,最好是通過單擊選項按鈕的文字就可以將選項按鈕選中,應該利用lable標籤的for屬性。

<form>    
性別:    
<input type="radio" name="sex" id="m"/><label for="m">男</label>    
<input type="radio" name="sex" id="f"/><label for="f">女</label>    
</form>

650) this.width=650;" title="image" style="border-right-width:0px;border-bottom-width:0px;border-top-width:0px;" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/73/CE/wKiom1YILpeQrlxZAAAYIpwXhNE222.jpg" width="180" height="38" />

 

10、Id是前端瀏覽器使用的,而name是後端伺服器使用的。

 

11、軟謀的徐老師:

大家處在初學階段,一定要通過寫部落格多總結,這是提升自己很好的一種方式,今天你知道了昨天不知道的東西,將它寫成文字整理出來,你會非常有成就感,也會切切實實感覺到自己的進步,知識積少成多,寫的內容多了,也就成了大牛了

 

12、勿在浮沙築高塔





萬丈高樓平地起

ASP.NET學習筆記(001):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.