English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Write a CSS file to define font type, style and size to <h1> tag.

Advertisements
Advertisements

Question

Write a CSS file to define font type, style and size to <h1> tag.

Answer in Brief
Advertisements

Solution

            Mystyle.css
H1
{
font-family : "Comic Sans MS";
font-style : italic;
font-size : 14px;
}
     ---CSS_Test.htm---
<html>
<head>
<title> Demonstration of using CSS </title>
<link rel="stylesheet"  type="text/css"  href="mystyle.css">
</head>
<body>
<H1> Welcome to CSS </H1>
<P>
   CSS was invented by HakonWium Lie on October 10, 1994 and 
   maintained through a group of people within the W3C called the 
   CSS Working Group. The CSS Working Group creates documents 
   called specifications. When a specification has been discussed and 
  officially ratified by W3C members, it becomes a recommendation.
</P> 
</body>
</html>
shaalaa.com
Introduction to CSS
  Is there an error in this question or solution?
Chapter 13: CSS - Cascading Style Sheets - Evaluation [Page 293]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 13 CSS - Cascading Style Sheets
Evaluation | Q 4. | Page 293
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×