CSS

Design a web page using CSS (Cascading Style Sheets) which includes the following:
1) Use different font, styles:
In the style definition you define how each selector should work (font, color etc.). Then, in the body of your pages, you refer to these selectors to activate the styles.

style.css
<!DOCTYPE html>
<html>
<head>
<title>Cascading Style Sheets</title>
<style type="text/css">
h1{
font-family: Times New Roman;
font-size: 16px;
font-weight: none;
}
.myStyleClass{
font-family: Courier New;
color: #FF8088;

}
.borders{
border-style: solid;
border-color: #FF0000;
border-width: 3px;
width:300px;
text-align: center;
}
</style>
</head>
<body>
<h1>Example for Internal CSS</h1>
    <p class="myStyleClass">Cascading Style Sheet is a style language that defines layout of HTML documents.</p>
    <p>Text affect with box style</p>
    <p class="borders">This is box content.</p>
</body>
</html>

No comments:

Post a Comment

Total Pageviews