<table summary="摘要不會顯示在瀏覽器上">
<caption>
說明會顯示在瀏覽器上
</caption>
<tr>
<th>標題1</th>
<th>標題2</th>
</tr>
<tr>
<td>內容1</td>
<td>內容2</td>
</tr>
</table>
一個格子占兩列:<td rowspan=“2”> … </td> 一個格子占兩行:<td colspan=“2”> … </td>
table table th {
background-color: white;
}
挑選 XHTML 中附有 width 屬性的所有 img。alt 中有 flowers 關鍵字的。
img[width] { border: balck; }
img[alt~="flowers"] { border: thin; }
list-style-type: square; list-style-image: url(images/list.gif);
<form action="contest.php" method="POST"> <input type="text" name="firstname" value="" /> <textarea name="comments" rows="10" cols="40">Default Value</textarea> <input type="submit" /> </form>