4 HTML Part I
4 HTML Part I
Every HTML document must have a <TITLE> element in the <HEAD> <IMG> - Inline image
section. The <TITLE> element is used to identify the contents of a <SPAN> - Generis inline character
web document. User agents usually make the content in the <TITLE> <INPUT> - Form input element
element visible to users, for instance in Internet Explorer, the title of a
web document shows up in the title bar of the browser window. Additionally there are elements that may be used as block elements as
well as inline elements. These are:
The <BODY> element contains the web document’s content. The <APPLET> - To embed a Java Applet
content may be represented by a user agent in a variety of ways. For <IFRAME> - Inline Frame
instance, various (visual) web browsers interpret and render the <MAP> - Image map
HTML markup within the <BODY> with variations. It is therefore <SCRIPT> - Client side script
important to cater for cross browser compatibility when developing
web interfaces. With this established, we now look at these elements at work. The
following examples demonstrate the use of the basic HTML elements
Structurally the document content is organised into blocks of text discussed.
such as paragraphs, lists, headings, etc. Generically, the elements that
manage the various types of blocks of text are known as block
elements. These are:
<Hn> - Headings
<P> - Paragraphs
<PRE> - Pre-format
<HR> - Horizontal Rule
<FORM> - To enclose web forms
<TABLE> - To arrange elements in a tabular fashion
<DIV> - For additional alignment
Additionally at the next level down there are inline elements that
usually appear within block elements to further alter the appearance
of text. Some examples of inline elements are:
<EM> - Emphasis also <I>
<STRONG> - Also <B> to bold text
<BIG> - Large text
<SMALL> - Small text
<BR> - line break
<CITE> - citation
<FONT> - Font change