COLORS
Most of the
web designers prefer to have their web pages white in color.But there are
situations wherein we want to create colourful web pages.First of all we will
learn how to display a text colorful on the web page.
XHTML
Document[ColorFont.html]
<html xmlns="http://www.learnhtmeasyl.blogspot.com/2017/xhtml">
<html>
<head>
<title>coloring the
text</title>
</head>
<body>
<basefont face="arial"size="5"color="blue">
Green people are simple
and<br>
<font face="Times new
roman"color="red"size="8">
Simple people are great!!!<br>
<font
face="Algerian"color="green"size="14">
Green people rule the world
</body>
</html>
In the
above XHTML document,we have used font face tag to set the font.using
the attributes color and size we can specify values color and size in double
quotes.
We can set
the background color of the web page using the attribute bgcolor.
No comments:
Post a Comment