<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="A page for exploring basic HTML documents">
<title>Basic HTML document</title>
</head>
<body>
<h1>Page content</h1>
<p>The main page content appears here.</p>
</body>
</html>
- charset:
規(guī)定在外部腳本文件中使用的字符編碼谈喳。
- meta:
<meta> 元素可提供有關(guān)頁面的元信息(meta-information)欠拾,比如針對(duì)搜索引擎和更新頻度的描述和關(guān)鍵詞夺刑。
<meta> 標(biāo)簽位于文檔的頭部茅信,不包含任何內(nèi)容捍靠。<meta> 標(biāo)簽的屬性定義了與文檔相關(guān)聯(lián)的名稱/值對(duì)。
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者