Arrow

CSS Font Style

AuthorHariom Prajapati

Pubish Date20 Aug 2022

categoryCSS

It is use to set the style of font for a text as Normal Italic Oblique etc.

 

Syntax - 

font-style: value;

 

values

Normal

To display normal font style. (default)

Italic To display italic font style.
Oblique This value is same a itlaic font style.

 

For example -

<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Font Style</title>
	<style>
		h6 {
			font-style: normal;
		}
		h4 {
			font-style: italic;
		}
		h2 {
			font-style: oblique;
		}
	</style>
</head>

<body>
	<h2> Teknowize </h6>
	<h2> welcome to Teknowize </h4>
	<h2> welcome to Teknowize </h2>
</body>

</html>

 

Output

Font Style