前端_HTML

wuhongnpm發表於2019-02-16

HTML

HTML(Hyper Text Markup Language):超文字標記語言.

一: 基本結構

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="關鍵字">
<meta name="description" content="文字介紹">
<style></style>
<link rel="stylesheet" href="css.css">
<title>HTML</title>
</head>
<body>
<p><p>
</body>
</html>

二: 文字


<h1></h1>標題1…標題6<h6></h6>
<header>頭部</header>
<nav>導航欄</nav>
<footer>底部</footer>
<aside>側邊</aside>
<br/>換行
<span></span>
粗體
強調
小號文字
<adress>地址</adress>


三: 列表


<ul>
<li>無序列表</li>
</ul>
<ol>
<li>有序列表</li>
</ol>
<dl>
<dt>自定義列表描述</dt>
<dd>自定義列表項的描述</dd>
</dl>

四:表單


<form>

<input type="radio" name="單選按鈕" value=""  placeholder="">
<input type="text" name="文字輸入" value="" placeholder="">
<input type="checkbox" name="多選按鈕" value="" placeholder="">
<input type="submit" name="提交" value="" placeholder="">

</form>

五:補充


<!–註釋文字–>
<img alt=”圖片” src=”x”>

相關文章