Set the Font Family of an Element

What is Font Family:



In this section you will learn how toSet the Font Family of an Element. In HTML and XHTML, a CSS font family property is used to specify a list of prioritized fonts and generic family names. It is controlled or changed by the font-family css property.

You can change font size by following below steps:


Step1: Open your text editor or Notepad.
Step2: Write the below code in your editor or notepad.
Step3: Save your document in etc.html format.
Step4: Open in Browser.


For Example:

<html>
<head>
<title> your web page title name </title>
<style>
p{
font-family: monospace;
}
</style>
</head>
<body>
<h1> WIKI BOOSTER </h1>
<p> wikibooster is website learning platform , you can learn here how to create a website.</p>
</body>
</html>


Output:















Please Share To Other:

Post a Comment

0 Comments