源代碼
點擊運行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>教程</title> <style> body {background-color:tan;} h1 {color:maroon;font-size:20pt;} hr {color:navy;} p {font-size:11pt;margin-left:15px;} a:link {color:green;} a:visited {color:yellow;} a:hover {color:black;} a:active {color:blue;} </style> </head> <body> <h1>這是標題</h1> <hr> <p>你可以看到這個段落是 被設定的 CSS 渲染的。</p> <p><a href="http://www.sharebody.com" target="_blank">這是一個鏈接</a></p> </body> </html>
運行結果