How to add a base font in a HTML page?

HTMLJavascriptProgramming Scripts

To add a base font for the document, use the <basefont> tag. This base font is applied to complete the document.

Note  − The tag is depreciated now. Use CSS font to set font properties instead.


You can try to run the following code to add a base font in an HTML page

<!DOCTYPE html>
      <title>HTML basefont Tag</title>
      <basefont face = "cursive,serif" color = "blue" size = "5"/>
Updated on 24-Jun-2020 07:37:24