English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Write a CSS file to define text color and alignment to <p> tag. - Computer Applications

Advertisements
Advertisements

Question

Write a CSS file to define text color and alignment to <p> tag.

Answer in Brief

Solution

Mystyle.css
P {
Text-align: center;
color : MediumSeaGreen;
}
--- 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 3. | Page 293
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×