Explain Types of Style Sheets
Explain Types of Style Sheets
1. Internal
Example:
<html>
<head>
<style>
h2 {color: blue;}
</style>
</head>
<body>
<h2>CareerRide Info</h2>
</body>
</html>
Output:
CareerRide Info
2. External
Example:
<head>
<link rel = “stylesheet” type = “text/css” href = “abc.css”>
</head>
3. Inline
Example:
<h2 style = “color:blue;”>CareerRide Info</h2>
Property Description
A shorthand property for setting all the background properties in one
CSS Background
declaration.
CSS Text-align Specifies the horizontal alignment of text.
CSS Font Sets all the font properties in one declaration.
CSS Border Sets all the border properties in one declaration.
CSS Outline Sets all the outline properties in one declaration.
CSS Margin-bottom Set the bottom margin for a <p> element.
CSS Padding- Set the bottom padding for a <p> element.
bottom
CSS List-style Specify all the list properties in one declaration.
CSS Table-layout Sets the layout algorithm to be used for a table.