- <hr/> 定義一條水準線
- <em> </em> 傾斜顯示文本
- <!--注釋語句 -->
- <h1 align="center">标記文本<h1> 居中顯示
- <font color="blue">怪尴尬</font> font屬性 face 字型 size color
- <strong> 加粗 <em>傾斜
- css标記 <style type="text/css">
- <hr 屬性="屬性值"/> 屬性: align size color width(百分比或大小) 定義水準線
- <br/> 換行
文本格式化标記
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcuIjMyYTMwcjMz0SN0YjMwITN4ATMyMDM4EDMy0iM1QDMzMTMvw1MwgTMwIzLcJTN0AzMzEzLcd2bsJ2Lc12bj5ycn9Gbi52YugTMwIzcldWYtl2Lc9CX6MHc0RHaiojIsJye.png)
- <strong> </strong> 加粗
- <em> </em> 斜體
- <del> </del> 文字加删除線
- <ins> </ins> 文字加下劃線
圖像标記 <img src="圖像url"/>
-
html-p59
相對路徑 絕對路徑(磁盤檔案所在位置) css核心基礎 css樣式規則 選擇器{屬性1:屬性值1;屬性2:屬性值2;} 例:h2{font-size:20px;color:red} 嚴格區分大小寫 一般小寫 屬性值用引号 屬性值和機關之間不允許出現空格 css樣式表 1行内式 <标記名 style="屬性1:屬性值1;屬性2:屬性值2;">内容</标記名> 例:<h2 style="font-size:20px;color:red;">使用css行内式修飾二級标題的字型大小和顔色</h2> 2行内式 <head> <style type="text/css"> 選擇器{屬性1:屬性值1;屬性2:屬性值2} </style> </head> 3鍊入式 <head> <link href="css檔案的路徑" target="_blank" rel="external nofollow" type="text/css" rel="stylesheet"> </head>
轉載于:https://www.cnblogs.com/cuirenlao/p/8615053.html