Thursday, December 27, 2018

CSS fonts

HTML with CSS fonts:- 


<html>
<head>
<style>
h1 {
  color: green;
  font-family: verdana;
  font-size: 150%;

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

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

</body>
</html>

OUTPUT:- 


  • 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.

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...