Saturday, September 7, 2013

Font Colour attributes



The COLOR attribute takes either the hexadecimal colour value or just the
colour name. Some common colour names are Blue, Green, Red, Yellow, White,
Black, Cyan, Magenta, Pink etc.
<FONT COLOR ="#RRGGBB">


Colours for monitors are in expressed in RGB, Red (RR), Green (GG) and
Blue (BB). The combinations of these colours yield other colours. The RGB values
can be expressed in percentages, integer values 0-255 or hexadecimal values 00 - FF.
Since we are concerned about colours on web pages we shall concentrate on
hexadecimal representation. In this notation, we use numbers 0 to 9 and alphabet
A to F.
0 means no colour and F means full colour.
Each colour in hexadecimal notation takes six digits, where the first two represent
RED, the second two, GREEN and the last two BLUE colour


For example,
<FONT COLOR ="#8F8FBD"> (for light steel blue colour)
<FONT COLOR ="blue"> ^for blue colour&


Notes :
• In HTML with <FONT> tag you can use size and COLOUR tags
together.
<FONT COLOR ="White" SIZE = 5>
• When you use colours relative hexadecimal values can be obtained
from Table 5.1
• If the colour value is not available in Table 5.1 it can be obtained from
'Adobe Photoshop'


Colours, Values & Names

List in HTML

When we create HTML documents, we all understand the importance of lists
in the document. They are an indispensable tool for cataloguing and indexing various
objects and events.
Two kinds of lists are very common and used by us regularly. The Ordered
Lists help us keep an organized inventory wherein the list items are ranked while in
Unordered Lists, the classification is not important and the list items do not occur in
any assorted order.


Example

<HTML>
<HEAD>
<TITLE>Example 5.07</TITLE>
</HEAD>
<BODY>
<H1>Ordered and Unordered</H1>
<H2>Ordered List</H2>
<OL TYPE=1 START=1>
<LI> First Item
<LI> Second Item
<LI> Third Item
</OL>
<H2>Unordered List</H2>
<UL TYPE=CIRCLE>
<LI> First Item
<LI> Second Item
<LI> Third Item
<UL TYPE=SQUARE>
<LI> Nested Item 1
<LI> Nested Item 2
<LI> Nested Item 3
<UL TYPE=DISC>
<LI> Nested Item 1
<LI> Nested Item 2
<LI> Nested Item 3
</UL>
<LI>Back to Square Nested Item 4
</UL>
</UL>
</BODY>
</HTML>


List in Web Document

No comments:

Post a Comment