HTML 大結!

來源:互聯網
上載者:User

標籤:

網頁分三部分:

HTML,HTM: 超文字標記語言 (HTML)

CSS :      樣式表

javascript: 指令碼

 

<body bgcolor="" background="" text="#000099">
字型標籤
<font color="#CCCCCC" face="Verdana, Geneva, sans-serif" size="+5"></font>
<b></b><i></i> <u></u><center></center> <br><br/> &nbsp;
內容標籤
<div></div><span></span>
<hi><h1><h6><h6>標題標籤 加粗換行
<ol type="a"> 有序排列
<li></li>
<li></li>
</ol>
<ul type="square"> 無序排列
<li></li>
<li></li>
</ul>
<p><a href="http://www.sina.com.cn"  target(開啟檔案)="_blank">超連結入口</a>    跳轉頁面
  <a href="">超文本</a>  下載文檔
錨點:
  <a href="#md1">找1</a>
  <a href="#md2">找2</a>
  <a name="md1">內容1</a>
  <a name="md2">內容2</a>
<img src="" width="" height="" alt="圖片不顯示後,顯示的文字"/>
   表格

<table width="100%" border="0" cellspacing="2"  bgcolor="#CC0099">
  <tr>
    <td width="20%" rowspan="2" bgcolor="#990033">&nbsp;</td>
    <td width="20%" bgcolor="#990033">&nbsp;</td>
    <td width="20%" bgcolor="#990033">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" bgcolor="#990033">&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="#990033">&nbsp;</td>
    <td bgcolor="#990033">&nbsp;</td>
    <td bgcolor="#990033">&nbsp;</td>
  </tr>
</table>

表單

<form name="zhuce" method="get" action="www.baidu.com"/(一般來說加“/”)>

method一般為post或get;

action 提交到那個頁面(基本是自己做的)來處理

1文本輸入
<input type="text" name="" value="">             單行文本輸入框
<input type="password" name="" value="">         密碼框
<textarea rows="5" value="" name=""></textarea>  文本域 多行文本輸入
<input type="hidden" name="" value="">           隱藏欄位
2按鈕
<input type="submit" name="" value="提交">  把輸的文字提交到另一個頁面
<input type="reset" name="" value="重設">
<input type="button" name="" value="普通" >
<input type="image" value="圖片" name="" width="50" height="50">
3選擇輸入
男<input type="radio" name="sex" value="true" checked="checked"(預設值)  > 單選  name相同為一組
女<input type="radio" name="sex" value="false" >

<input type="checkbox" name="" value="" checked="checked" > 多選
<input type="checkbox" name="" value="" >
<input type="checkbox" name="" value="" >

<input type="file" name="" value="" >瀏覽 選擇檔案  上傳檔案
<select name="" multiple="multiple"(多選)>
<option value="01" selected="selected">張三</option>
<option value="02">李四</option>
</select>
</form>

</body>

 

 

CSS 樣式表

<title>CSS</title>

<style type="text/css">
*
{
 margin:0px;
 padding:opx; 
}
ul
{
 list-style-type:none;
  /*list-style-position:inside; */
}
ul li
{
 /*display:inline;*/
 float:left;
 margin:opx 10px 0px 10px;(上右下左 水木火土金)
 
}
.dd
{
 width:100px;
 height:100px;
 border:5px solid red;
 background-color:yellow;
 margin:5px;
 float:left;
 
}

div
{
 border:1px dotted red;
 height:100px;
 backgroud-color:yellow;
 width:500px;
 }
#d0
{
 width:600px;
 height:50px;
 background-color:red;
 
}
 #d2
 {
  background-color:green;
  height:200px;
  width:700px;
  
 }
</style>
</head>

<ul>
<li>首頁</li>
<li>公司介紹</li>
<li>新聞活動</li>
<li>產品介紹</li>
<li>客服介紹</li>
<li>會員專區</li>
<li>聯絡我們</li>
</ul>

<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>
<div class="dd"></div>

<div id="d1"></div>
<div id="d2"></div>
</body>
</html>

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.