1. 程式人生 > >html相關

html相關

wid 窗口 目標 cnblogs 字體 htm 熱點 title itl

基本格式:

<html>

<head>
<title>網頁標題</title>
</head>

<body>
輸入內容 </body> </html>

常用標簽

<strong>字體加粗</strong>
<em>斜體</em>

<h1>標題標簽</h1>~<h6></h6>
由大到小

<br/>換行標簽 

<p></p>段落標簽

<hr/>水平線       <hr width="水平線寬度">

 


 

圖像標簽 

<img src="路徑地址" alt="圖片的代替文字" title="鼠標懸停時顯示文字" 
 width="圖像寬" height="高"/>

  

超鏈接
<a href="鏈接地址" target="目標窗口位置" >鏈接熱點文本或圖像</a>
                                          _blank新窗口
                                          _self 本窗口

  


錨鏈接
<a href="#xx"></a>訪問錨
<a name="xx"></a>定義錨

  

html相關