Head Elements

Team-Fly

Head elements define characteristics for the entire document. The order of the elements does not matter because information contained in the head is not displayed as part of the document itself.

Base Element

The <BASE> element sets the base URL for the document. Partial URLs in the document are resolved by using this base address. The attribute is HREF and is used in the following fashion:

<base href=http://www.myworld.com/dir/>

Title Element

Each HTML document must have a title element. The text between the start and end tags is usually displayed in the browser’s window header.

<title>Test HTML Title</title>

Style Element

The <STYLE> element provides style information, such as font, alignment, and color, and controls the presentation of documents. Style information can be specified for individual elements or groups of elements, and can be defined in the HTML document or in an external style sheet. Prior to version 4.0 of HTML, attributes associated with different objects controlled presentation style. Because some Internet users may not have upgraded their browsers to take advantage of HTML 4.0, many HTML documents still do not use the <STYLE> element. The attributes for this element are as follows:

  • Type. The language of the style sheet. The style sheet language is specified as a content type (for example, text/css). Authors must supply a value for this attribute; there is no default value for this attribute.

  • Media. This attribute defines the intended destination medium for the style information. The default value is “screen”.

This appendix does not cover the Style scripting language, which is independent of the HTML language. The following example shows how to force a border around every <H1> element in the document and center it on the page. For more information on this subject, please refer to www.w3.org or to one of the many HTML/CGI/Scripting books that are available.

<head> <style type="text/css"> H1 {border-width: 1 border: solid: text-align: center} </style> </head>

META Element

The <META> element allows the definition of data about the HTML document. Some things that can be defined include author, keywords, and expiration date. More than one <META> element is allowed in an HTML document. The attributes of the <META> element are as follows:

  • Name. The name of the property to be assigned (sometimes the attribute http-equiv is used in place of Name). One common name is “Author.”

  • Content. The value to be assigned to the name specified in the same element declaration.

    <meta name="Expires" content="Sun, 05 Jun 1999 15:00:00 GMT"> <meta name="keywords" content="Java, SAP, HTML">


Team-Fly


Java & BAPI Technology for SAP
Java & BAPI Technology for SAP
ISBN: 761523057
EAN: N/A
Year: 1998
Pages: 199

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net