You are on page 1of 20

ALL ABOUT HEAD &

BODY TAGS
PRESENTED BY : JUGALBOT & MAISO
Working with Body & Font Attributes

◦ Using the body tag enables the user to manipulate the


background colors and text for HTML documents.

◦ Using font you can override the text color in body tag.
BODY
ATTRIBUTES
<body text=“blue”></body>

◦Indicates the color of normal text within the


document.
<body bgcolor=“white”></body>

◦Indicates the color of the document


background.
<body background=“URL”></body>

◦Specifies the relative or absolute location of


an image file that tiles across the document
background.
Ex. <body background=“URL”
text=“blue” bgcolor=“blue” > </body>
<body alink=“cyan”> </body>

◦Indicates the color of the hyperlink text when


the text is selected.
<body link=“blue”> </body>

◦Indicates the color of hyperlink text


within a document, which corresponds to
documents not yet visited by the browser.
<body vlink=“green”> </body>

◦Indicates the color of the hyperlink text within


a document, which corresponds to documents
already visited by the browser.
Ex.<body alink=“blue” link=“red”
vlink=“green”> </body>
<font> </font>

Sets or alters the characteristics of the font


which the browser uses to display text.
FONT
ATTRIBUTES
<font color=“red”> </font>

◦Indicates the color the browser uses to display


text.
<font face=“calibri, Algerian, arial, wide
latin”> </font>

◦ Specifies a comma – separated list of font name


browser uses to render text. If the browser does not
have access to the first named out, it tries the
second, then the third and so forth.
<font size=“20”> </font>

◦Specifies the size of the text affected by


the font tag. Number ranges from 1 to 7.
Ex.<font face=“calibri” color=“red”
size=“20”> </font>
Using the body & font tag
The output of the code that I showed just
a minute ago
THANK YOU !!!!
THE END 

You might also like