每一个HTML元素都可以附带id特性,id特
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div>id特性</div>
<p>id能将其与页面上同一种元素的其他实列区别开。例如,你可能希望为页面上的某段落</p>
<p id="pullquote">这个段落可能包含一个引用</p>
</body>
</html>
性用来从页面上的其他元素中对一个元素进行唯一标识,它的值应该以字母或下划线开头(而不能是数字或其他字符)