HTML – Font & basefont

HTML – Font & basefont


The <font> tag is used for modifying the type of a text, the size and the color. Use “size“, “color” and “face” attributes to personalize your text and the <basefont> tag to set the color, size and the style of a whole text.

Mostly the “font” and “basefont” tags are not used much, because CSS offers a much better way to set text’s attributes.

The font size

Set the size of your font. There are accepted values between 1 (the smallest) and 7(the biggest). The standard value of a text is 3.

HTML Code:
<p><font size="5">This is font size 5</font></p>


This is font size 5

The font color

Set the color of the text

HTML Code:

	<font color="#990000">This text is hexcolor #990000</font><br />
	<font color="red">This text is red</font>


This text is hexcolor #990000
This text is red

Font face

Pick a letter style using the font’s face attribute. You can choose any font you have installed, but choose the font with care, because the user on your page can’t see the font if he hasn’t got installed your font. He will see the default font meaning Times New Roman. The solution would be to choose many fonts who look the same.

HTML Code:
<p><font face="Bookman Old Style, Book Antiqua, Garamond">This paragraph has had its font formatted  with the font's face atribute</font><p>


This paragraph has had its font formatted with the font’s face atribute



With the help of the “basefont” tag you can set the default value of the font in your web page. We recommend to specify a “basefont” in case you will use the font in HTML. Here you have an example.

HTML Code:

		<basefont size="2" color="green">
			<p>This paragraph has had its font formatted with the basefont tag</p>
			<p>This paragraph has had its font formatted with the basefont tag</p>
			<p>This paragraph has had its font formatted with the basefont tag</p>


With all these, “basefont” is somehow deprecated. In the close future is possible that it won’t work with anymore and will be entirely replaced by CSS rules.


Attribute= “Value” Description
size= “Num. Value 1-7” Size of your text, 7 is biggest
color= “rgb,name,or hexadecimal” Change font color
face= “name of font” Change the font type

The beginning “by the book”

HTML Code:
<p><font size="7" face="Georgia, Arial" color="maroon">C</font>ustomize your font to achieve a desired look.</p>


Customize your font to achieve a desired look.

Python Example for Beginners

Two Machine Learning Fields

There are two sides to machine learning:

  • Practical Machine Learning:This is about querying databases, cleaning data, writing scripts to transform data and gluing algorithm and libraries together and writing custom code to squeeze reliable answers from data to satisfy difficult and ill defined questions. It’s the mess of reality.
  • Theoretical Machine Learning: This is about math and abstraction and idealized scenarios and limits and beauty and informing what is possible. It is a whole lot neater and cleaner and removed from the mess of reality.

Data Science Resources: Data Science Recipes and Applied Machine Learning Recipes

Introduction to Applied Machine Learning & Data Science for Beginners, Business Analysts, Students, Researchers and Freelancers with Python & R Codes @ Western Australian Center for Applied Machine Learning & Data Science (WACAMLDS) !!!

Latest end-to-end Learn by Coding Recipes in Project-Based Learning:

Applied Statistics with R for Beginners and Business Professionals

Data Science and Machine Learning Projects in Python: Tabular Data Analytics

Data Science and Machine Learning Projects in R: Tabular Data Analytics

Python Machine Learning & Data Science Recipes: Learn by Coding

R Machine Learning & Data Science Recipes: Learn by Coding

Comparing Different Machine Learning Algorithms in Python for Classification (FREE)

Disclaimer: The information and code presented within this recipe/tutorial is only for educational and coaching purposes for beginners and developers. Anyone can practice and apply the recipe/tutorial presented here, but the reader is taking full responsibility for his/her actions. The author (content curator) of this recipe (code / program) has made every effort to ensure the accuracy of the information was correct at time of publication. The author (content curator) does not assume and hereby disclaims any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from accident, negligence, or any other cause. The information presented here could also be found in public knowledge domains.  

Google –> SETScholars