A filesystem:
httpd.conf
File
ServerName www.example.org
Listen 80
DocumentRoot "/www"
DirectoryIndex index.html
ErrorDocument 404 /errors/error.html
How many files are hosted by this web server?
Give the absolute pathnames of the files that will be served if a client requests the following URLs:
http://www.example.org/images/oak.png
http://www.example.org/trees/
http://www.example.org/
http://www.example.org/flowers/rose.html
Assume we are writing URLs for inclusion in /www/trees/oak.html
, give the absolute URL for the files called:
yew.html
oak.png
index.html
(the one in trees
)index.html
(the one in www
)
Assume we are writing URLs for inclusion in /www/trees/oak.html
, give the relative URL for the files called:
yew.html
oak.png
index.html
(the one in trees
)index.html
(the one in www
)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>