源代碼
點擊運行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>教程</title> <style> body {background-color:yellow;} h1 {font-size:36pt;} h2 {color:blue;} p {margin-left:50px;} </style> </head> <body> <h1>這個標題設置的大小為 36 pt</h1> <h2>這個標題設置的顏色為藍色:blue</h2> <p>這個段落的左外邊距為 50 像素:50px</p> </body> </html>
運行結果