HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
PHP Tutorial

PHP forms
HTML Tutorial

CSS Tutorial

HTML Font Color


HTML Tutorial » HTML Font Color

The font tag is having three attributes called size, color, and face to customize your fonts.
To change any of the font attributes at any time within your webpage, simply use the <font> tag.
The text that follows will remain changed until you close with the <font> tag.
You can change one or all of the font attributes within one <font> tag.

Syntax:
<font color="color_name or hex_number or rgb_number">


Attribute Values
color_name (like "red")
hex_number (like "#ff0000")
rgb_number (like "rgb(255,0,0)")

Note: The color attribute of <font> is not supported in HTML5. Use CSS instead.

HTML font color - examples



Example: Specify the color of text:
Example 1 My first HTML page:

<!DOCTYPE html>
<html>
<head>
<title>HTML Font Color</title>
</head>
<body>

<h1>Tis is an example of HTML Font Color</h1>
<font color="red">Nere is my text! with font color color_name useing: color="red" </font> <br />
<font color="#0099FF">Nere is my text! with font color hex_number useing: color="#0099FF" </font> <br />
<font color="rgb(30, 45, 12))">Nere is my text! with font color rgb_number useing: color="rgb(30, 45, 12))" </font><br />

</body>
</html>
Note: The color attribute of <font> is not supported in HTML5. Use CSS instead.

html font color HTML Font Color - html tutorial

3206. HTML Introduction, html tutorial
HTML Introduction html tutorial
https://www.agernic.com/html-tutorial/html-introduction.html

2618. Basics : Head Section - HTML Tutorial
HTML basics - HTML tutorial
http://www.echoecho.com/htmlbasics04.htm

2691. Text : Text Format - HTML Tutorial
HTML basics - HTML tutorial
http://www.echoecho.com/htmltext04.htm

2672. Links : Links in Framesets - HTML Tutorial
HTML links - HTML tutorial
http://www.echoecho.com/htmllinks09.htm

2642. Frames : Resizable Windows - HTML Tutorial
HTML frames - HTML tutorial
http://www.echoecho.com/htmlframes05.htm

2615. Basics : Why Learn HTML? - HTML Tutorial
HTML basics - HTML tutorial
http://www.echoecho.com/htmlbasics01.htm

Your add here
PHP substr() function

PHP strtolower() function

PHP htmlentities() function

PHP htmlspecialchars() function

PHP printf() function

PHP strrchr() Function

PHP str_split() function

PHP print() function

PHP strip_tags() function

PHP ltrim() function

PHP count() Function

PHP wordwrap() function

PHP define() function

PHP isset() Function

PHP htmlspecialchars_decode() function

PHP lcfirst() function

HTML Text Color Style
CSS max width - max height - CSS responsive
CSS Text Style Bold - Text Decoration - Text Shadow
HTML div class container
PHP Install
CSS Margin, top, bottom, left, righ, auto