Change the Font Size of an Element

How to Change the Font Size:
In this section you will learn how to change the size of font of an element. Font size is controlled or changed by the font-size 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-size: 30px;
}
</style>
</head>
<body>
<h1> your first heading </h1>
<p> your paragraph .</p>
</body>
</html>


Output:















Please Share To Other:

Post a Comment

0 Comments