HTML Fonts
Font tag is used to text specification. Face attribute of <font> tag is used to set the font of the text.
Change the font size of the text
Size attribute is used to specify the size of text.<font size="18"> welcome to dophptalks </font>
welcome to dophptalks
Change the color of the text
Color attribute of <font> tag is used to specify the color of text.<font color="green" > welcome to dophptalks </font>
welcome to dophptalks
in the above examplewe set color value( green) ,the statement (welcome to dophptalks) written between the tag
will be green because the value of color is green.
Change the font face of the text
<font face="Lucida Handwriting" color="green"> welcome to dophptalks </font>
welcome to dophptalks
in the above examplewe set face value(“Lucida Handwriting”) with color value(“green”)
and output of the text statement(welcome to dophptalks) with Lucida Handwriting face
if we set the size with (value=+2). it will increase the size of text statement.
Maximum font size can set “+7″
No comments:
Post a Comment