The <head> Element
The <head> element is just a container for all other header elements. It should be the first thing to appearafter the opening <html> tag.
Each <head> element should contain a <title> element indicating the title of the document, although it
may also contain any combination of the following elements, in any order:
- <base>, which you will meet later in the coming articles..
- <object>, which is designed to include images, JavaScript objects, Flash animations, MP3 files,
- QuickTime movies and other components of a page. (It will be covered in the coming articles)
- <link> to link to an external file, such as a style sheet or JavaScript file, as you will see later in our articles.
- <style> to include CSS rules inside the document
- <script> for including script in the document
- <meta>, which includes information about the document such as keywords and a description,
which are particularly helpful for search applications
The opening <head> tag can carry the following attributes:
id dir lang xml:lang profile
The profile attribute is not actually in use yet, although it was included so it could be used in the future
to specify a URL for something known as a profile that would describe the content of the document. The
other attributes are covered in the “Attribute Groups” in our later articles.
0 comments:
Post a Comment