源代碼
點擊運行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>教程</title> </head> <body> <center><h1>這是一個標題</h1></center> <p>上面的標題在這個頁面中居中對齊。</p> </body> </html>
運行結果