हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

List and explain the Font and text element properties and values used CSS.

Advertisements
Advertisements

प्रश्न

List and explain the Font and text element properties and values used CSS.

दीर्घउत्तर
Advertisements

उत्तर

Formatting Properties Values Example
Text Colour Color Predefined_Color_Name
P
{
  color:pink;
}
H1
{
  color : MediumSeaGreen;
}
Text Alignment Text-align Center/Left/Right/Justify
P
{
  Text-align : center;
}
Font type Font-family Font_name
P
{
Font-family : “Times New Roman”;
}
Font Style Font-style Normal/Italic
P
{
  Font-family : “Times New Roman”;
  Font-style : Italic;
}
Font Style (Bold) Font-weight Normal/Bold
P
{
Font-family : “Times New Roman”;
Font-style : Italic;
Font-weight : bold;
}
Font size Font-size Size in pixels
P
{
Font-family : “Times New Roman”;
Font-style : Italic;
Font-size : 14px;
}
Background Colour Background Colour Predefined_Color_Name
Body
{
background-color : violet;
}
Border Colour Border Border thickness
<space> border style <space> Predefined_ borderColor_Name
H2
{
border : 2px solid red;
}
shaalaa.com
Introduction to CSS
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 13: CSS - Cascading Style Sheets - Evaluation [पृष्ठ २९३]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
अध्याय 13 CSS - Cascading Style Sheets
Evaluation | Q 2. | पृष्ठ २९३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×