HTML/重要的標記、屬性、樣式:修訂版本之間的差異
出自六年制學程
(未顯示2位用戶所作出之2次版本) | |||
第 23 行: | 第 23 行: | ||
ul 沒有次序的列表(unorder list) | ul 沒有次序的列表(unorder list) | ||
li 列表項目(list item) | li 列表項目(list item) | ||
+ | |||
+ | b 字加粗(bold) | ||
+ | u 字畫底線(under) | ||
+ | i 斜體字(italic) | ||
style 宣告樣式(修飾一個超文件) | style 宣告樣式(修飾一個超文件) | ||
第 37 行: | 第 41 行: | ||
src= 圖照來源(source) | src= 圖照來源(source) | ||
href= 跳往那一個連結(hyper ref)(hyper reference) | href= 跳往那一個連結(hyper ref)(hyper reference) | ||
− | target= | + | target= 跳往瀏覽器的那裡,預設值為本頁的本窗框,值_blank為新的空白頁 |
style= 樣式屬性(修飾一個標籤) | style= 樣式屬性(修飾一個標籤) | ||
width= 寬度,可以用點(px,pt)或長度(cm)或百分比表示 | width= 寬度,可以用點(px,pt)或長度(cm)或百分比表示 | ||
height= 高度,可以用點(px,pt)或長度(cm)或百分比表示 | height= 高度,可以用點(px,pt)或長度(cm)或百分比表示 | ||
− | border= | + | border= 邊框 |
+ | colspan= 水平併格 | ||
+ | rowspan= 垂直併格 | ||
align= 靠左或調中或靠右 | align= 靠左或調中或靠右 | ||
class= 引用 CSS 類別 | class= 引用 CSS 類別 |
2025年6月1日 (日) 15:48的最新修訂版本
標籤 ==== html 超文件(HyperText Markup Language) head 文件頭 meta 對自身的描述 title 標題 body 本文 h1~h6 標題一級到六級(head) a 超連結(anchor) img 圖(image) p 段(paragraph) br 跳行(break space) hr 水平線(Horizontal Rule) table 表 tr 表內之列(table row) td 放數據的表內之格(table data) th 放標題或欄名的表內之格(table header) ol 有次序的列表(order list) ul 沒有次序的列表(unorder list) li 列表項目(list item) b 字加粗(bold) u 字畫底線(under) i 斜體字(italic) style 宣告樣式(修飾一個超文件) link 載入另一個檔,如 CSS 檔 span 文字小片段 div 區塊(division) pre 保留原有斷行及排列之式(preserve) form 表單 屬性(用=連等號兩邊) ==== http-equiv= http項目 src= 圖照來源(source) href= 跳往那一個連結(hyper ref)(hyper reference) target= 跳往瀏覽器的那裡,預設值為本頁的本窗框,值_blank為新的空白頁 style= 樣式屬性(修飾一個標籤) width= 寬度,可以用點(px,pt)或長度(cm)或百分比表示 height= 高度,可以用點(px,pt)或長度(cm)或百分比表示 border= 邊框 colspan= 水平併格 rowspan= 垂直併格 align= 靠左或調中或靠右 class= 引用 CSS 類別 id= 賦予標籤惟一的名字 xmlns= 指出 xml 的名字空間 type= 指示檔案的類別 content= 指示 http-equiv 屬性代表項目的值 樣式(用:連冒號兩邊) ==== font-family: 字體 font-size: 字的大小 font-weight: 字有多粗 text-align: 字的對齊方式 color: 字的顏色 width: 寬度 height: 高度 border: 邊框 border-collapse:collapse 合併框線