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?
APPEARS IN
RELATED QUESTIONS
Expansion of CSS ______.
CSS is also called as ______.
What is selector?
Which of the following indicates that the text included is a comment?
What is the use of <style> tag?
Write the general format of linking CSS with HTML.
What is Inline Style?
Write down general format of CSS declaration.
What are the advantages of using CSS? Advantages of CSS
Write an HTML document to display the following paragraph as per the given description Using CSS:
- Font Name: Cooper Black
- Style: Bold Italics
- Color: Blue
“The State Institute of Education (SIE) was established in 1965 to provide for systematic study of problems relating to School Education under the administration of Directorate of School Education.”
