Horje
How to create HTML CSS Colors, Fonts and Sizes

Here, we will demonstrate some commonly used CSS properties. You will learn more about them later.


Full Example of CSS Colors, Fonts and Sizes

The CSS color property defines the text color to be used. The CSS font-family property defines the font to be used. The CSS font-size property defines the text size to be used.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
  color: blue;
  font-family: verdana;
  font-size: 300%;

}
p  {
  color: red;
  font-family: courier;
  font-size: 160%;
}
</style>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

Output should be:

Full Example of CSS Colors, Fonts and Sizes
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_css_fonts





Related Articles
What is HTML CSS HTML CSS
How to use CSS HTML CSS
How to use HTML Inline CSS HTML CSS
How to use HTML Internal CSS HTML CSS
How to use HTML External CSS HTML CSS
How to create HTML CSS Colors, Fonts and Sizes HTML CSS

Single Articles
Full Example of CSS Colors, Fonts and SizesHTML CSS

Read Full:
HTML CSS
Category:
Web Tutorial
Sub Category:
HTML CSS
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
22



Share on: