Ch-7 More on HTML5
Ch-7 More on HTML5
OUTPUT:
3. Use of Text Properties
<Html>
<head>
<title>text properties</title>
<style type="text/css">
h1{font-family:Comic Sans Ms;text-align:center;text-decoration:underline;color:red}
</style></head>
<body>
<h1>Earth</h1>
<p style="font-family:Times New Roman;text-transform:uppercase;text-decoration:overline">
Earth is the third planet from the sun.</p>
<hr size="10" width="100%" color="green">
<p style="font-family:Times New Roman;text-transform:lowercase;text-shadow:3px 5px red;text-
decoration:line-through">
It is the only planet that sustains life.</p>
</body>
</html>
OUTPUT:
4. Use of Font and Background Properties
<html>
<head>
<title>Learning Background Properties</title>
<style type="text/css">
body{background-color:yellow;background-image:url('g2.jpg');background-repeat:repeat-y}
h1{background-color:green;text-align:center;font-family:verdana;font-size:60;font-style:bold}
</style>
</head>
<body>
<h1>Guru Nanak Jayanti</H1>
</body>
</html>
OUTPUT:
5. Use of Margin and Border Properties
<html>
<head>
<title>Text Properties</title>
<style type="text/css">
body{color:blue;margin-top:50px;margin-left:60px;margin-bottom:70px;margin-right:90px}
h1{text-align:center;text-shadow:3px 3px red}
</style>
</head>
<body>
<h1>Teamwork</h1>
<p style="border-style:ridge;border-color:yellow;border-width:25px"><!--inline method-->
success is about who you are,not what-you have.Successful-people work to discover-their talents;
to discover their talents and to use those talents to benefit others .
</p>
<p style="border:30px dotted red">hello class 7 students.hope you are enjoying coding.</p>
</body></html>
OUTPUT: