Specify How Fonts Should Degrade

How Fonts Should Degrade:


There are several fonts that are available in all browser, these generic font families include monospace, serif and sans-serif. When one font is not available, you can tell the browser to degrade to another font.You can understand better 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>
<!--  When link is not working -->
     <link href="https://fonts.googleapis.com/css?family=Lemonada&display=swap" rel="stylesheet">

<style>
p{
font-family: Lemonada,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:





Next Topic Size Your Images









Please Share To Other:

Post a Comment

0 Comments