A page jump is where the user clicks a link and she is moved to somewhere else within the same page.
scheme://host:port/pathname?query#fragment
id
Attributesrc
with img
).id
, are global, i.e. they apply to all elements (e.g. lang
).id
attribute's value, but it should be unique within the document, e.g.:
<section id="education">
In the HTML,
id
;id
in its href
<nav>
<a href="#education">Education</a>
<a href="#hobbies">Hobbies</a>
<a href="#family">Family</a>
</nav>
…
<main>
<section id="education">
<h2>Education</h2>
…
</section>
<section id="hobbies">
<h2>Hobbies</h2>
…
</section>
<section id="family">
<h2>Family</h2>
…
</section>
<main>
Because elements are nested, web pages have a hierarchical structure.
Terminology:
tree
node
root leaf
parent child
ancestor descendant
sibling
<!DOCTYPE html>
<html>
<head>
<title>A simple document</title>
</head>
<body>
<p>
Some words.
</p>
<p>
More words
<em>and emphasised words</em>
and final words.
</p>
</body>
</html>