![]()
<B>
<BASE
...>
<BASEFONT
...>
<BGSOUND
...>
<BIG>
<BLINK>
<BLOCKQUOTE>
<BODY>
<BR>
The Bold element specifies that the text should be rendered in boldface, where available. Otherwise, alternative mapping is allowed. "You must <B>sign my guestbook</B> before moving on" would be displayed by the browser as : "You must sign my guestbook before moving on". <B> can also take the CLASS, ID and STYLE attributes to allow style sheet definitions to be applied to it. For more details of these attributes, refer to the Style Sheets topic.
This tag is used to establish a base URL in a document. <BASE> is a stand-alone tag that takes a the HREF attribute. HREF is set to the base URL you want to use. For example, my homepage is located in http://www.mohaniyer.com. If I set this as my base URL, I can refer to any page in any other directory under my homepage directory with their relative location. If I need to display an image isglogo.gif that is in images directory, I can code my HTML as <IMG SRC=images/isglogo.gif> Note that I do not have to give the full path name. If I need to refer to a file in the same directory as my homepage, I need to give just the filename and not the entire URL. Many browsers automatically treat a document's URL as the base URL, so all references within the document can be made relative to the document's URL. If you are referencing a file that is on a different server, base URL will not help. You need to code the full URL for that file.
This tag allows you to reassign the default font size from 3 to a different value. Valid values are 1 to 7. <BASEFONT SIZE=5>. This is a stand-alone tag that takes the following attributes :
FACE
This attribute allows changing of the face of the HTML document
BASEFONT, exactly as for <FONT
FACE= ...>
COLOR
This allows the BASEFONT colour for the HTML document to be set.
Colours can either be set by using one of the colour names, or as
a hex rrggbb triplet value. For details of colour names, refer to
the HTML Color codes topic.
This element is currently only supported by the
Microsoft Internet Explorer. The new BGSOUND tag allows you to
create pages with background sounds or "soundtracks."
Sounds can either be samples (.WAV or .AU format) or MIDI (.MID
format). The HTML used to insert a background sound into a page
is: <BGSOUND SRC="start.wav">. The attributes
associated with the BGSOUND element are SRC and LOOP.
SRC
This attribute specifies the address of a sound to be played.
LOOP
This attribute specifies how many times a sound will loop when
activated. If n=-1 or LOOP = INFINITE is specified, the sound
will loop indefinitely.
Examples
<BGSOUND SRC="macarena.mid">
This would play the specified MIDI
file as soon as Internet Explorer loads the page containing this
line (provided the MIDI file is in the same directory as the
document).
<BGSOUND SRC="boing.wav" LOOP=INFINITE>
This would play the specified WAV file as soon as it has finished
being loaded and would continuously play the file until another
page is loaded.
The <BIG> element specifies that the enclosed text should be displayed, if practical, using a big font (compared with the current font). This is normal text, with <BIG>this bit</BIG> being big text. would be rendered as: This is normal text, with this bit being big text. Use of this element is currently supported by Netscape and the Internet Explorer only. They also allow the <BIG> ... </BIG> element to be used surrounding the <SUB> ... </SUB> and <SUP> ... </SUP> elements to force rendering of the sub/superscript text as normal size text as opposed to the default slightly smaller text normally used. The exact appearance of the big text will change depending on any <FONT SIZE=...> and <BASEFONT SIZE=...> settings, if specified. <BIG> can also take the CLASS, ID and STYLE attributes to allow style sheet definitions to be applied to it. For more details of these attributes, refer to the Style Sheets topic.
Surrounding any text with this element will cause the selected text to blink on the viewing page. This can serve to add extra emphasis to selected text. <BLINK></BLINK> The <BLINK> ... </BLINK> element is currently only supported by Netscape.
Use this tag to quote a passage directly from another source. Indented margins are automatically rendered. Once HTML Style Sheets find increasing use, this tag will lose its appeal. Example of this tag would be :
<BLOCKQUOTE>
<P>Write Structured Code. </P> <P> A
well-structured code will minimize the maintenance effort and
also make it easily readable. Some of the unstructured programs
have caused nightmares to many IT organizations. </P>
</BLOCKQUOTE>
The above passage will be displayed as under :
Write Structured Code.
A well-structured code will minimize the maintenance effort and also make it easily readable. Some of the unstructured programs have caused nightmares to many IT organizations.
The body of a HTML document contains all the
text and images that make up the page, together with all the HTML
elements that provide the control/formatting of the page (unless
the document uses a style sheet to control presentation). The
format is :
<BODY>
The document included here
</BODY>
It is possible to control the document colour scheme and
background by specifying certain attributes in the <BODY
...> declaration. However, it should be noted that most
browsers provide the user with a means to over-ride colour
schemes and prevent images from loading. The BACKGROUND
attribute can be used to point to an image file that will be
tiled across the browser window, to provide a background for the
document. Specifying :
<BODY BACKGROUND="URL or path/filename.gif">
Document here
</BODY>
would cause whatever text, images, etc. appeared in that document
to be placed on a background consisting of the (filename.gif)
graphics file being tiled to cover the viewing area.
The BGCOLOR attribute, allows setting of the
background colour for the document.
<BODY BGCOLOR="#rrggbb">
Document here
</BODY>
Where "#rrggbb" is a hexadecimal red-green-blue triplet
used to specify the background colour. If a background image or
colour is used it will probably be necessary to alter the
foreground colours in order to establish a sensible contrast for
the document.
TEXT
This attribute is used to control the colour of all the normal
text in the document. This basically consists of all text that is
not specially coloured to indicate a link. The format of TEXT is
the same as that of BGCOLOR.
<BODY TEXT="#rrggbb">
Document here
</BODY>
LINK, VLINK, and ALINK attributes
These attributes allow control over the link text colouring.
VLINK stands for visited link, and ALINK stands for active link.
The default colouring of these is: LINK=blue (#0000FF),
VLINK=purple (#400040), and ALINK=red (#FF0000). Again, the
format for these attributes is the same as that for BGCOLOR and
TEXT.
<BODY LINK="#rrggbb" VLINK="#rrggbb"
ALINK="#rrggbb">
Document here
</BODY>
The Line Break element specifies that a new
line must be started at the given point. A new line indents the
same as that of line-wrapped text.
Example :
<P>
Line 1 of text<BR>
Line 2 of text<BR>
Line 3 of text<BR>
With the introduction of floating images it became necessary to
expand the <BR> element. Normal <BR> still just
inserts a line break. CLEAR attribute has been
added to <BR>, so :
CLEAR=left will break the line, and move vertically down until
there is a clear left margin (no floating images).
CLEAR=right does the same for the right margin.
CLEAR=all moves down until both margins are clear of images.