HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 43. CH42 ELEMENTS OF HTML 326



this is the title





Thetitle tag comes within the head. You should have exactly one title
element. If you bookmark a page, the browser will typically use the title
(and favicon) to identify the bookmark, so the title should be helpfully
descriptive when used as a bookmark.


<br /> IWDD Sample Webpage<br />

Thebasetag comes within the head. It provides a basis for resolving relative
URL references in the rest of the document. It defaults to the URL by which
the page was originally loaded. You can have at most one base element.



Base can be particularly handy if there is more than one URL that could
lead to this same webpage. I have used it when I wanted to have a page
temporarily become my homepage, but permanently be a different part of
my website.


Thelinktag comes within the head. It provides linkage to resources that
have their own URLs. Each link must specify an href (URL) and a rel
(relationship).


Links includes things that will be used immediately like icons and style
sheets. Links also include things like related webpages, such as author and
license. (or next and back and up?)


Thestyletag can come within the head and provides CSS style information,
or a link to such information. The style can be applied (selected) or not
depending on themediaattribute, and whether it matches the medium
that is presenting the webpage, such as screen, printer, or audio.

Free download pdf