Page 178 - CITS - CSA - TP (Volume 1) - Hindi
P. 178
कंप्यूटर सॉफ्टवेयर एप्लीकेशन- CITS
टा 2: CSS Id िसले र का उपयोग करना
1 टे एिडटर ओपन कर
2 िन िल खत कोड िलख
<html>
<head>
<style>
#para1 {
text-align: center;
color: blue;
}
</style>
</head>
<body>
<p id=”para1”>Hello Javatpoint.com</p>
<p>This paragraph will not be affected.</p>
</body>
</html>
3 ो ाम को .html फ़ाइल के प म सेव कर
4 वेब ाउज़र से html फ़ाइल ओपन कर
5 आउटपुट की पुि कर ।
टा 3: CSS ास िसले र का उपयोग करना
1 टे एिडटर ओपन कर
2 िन िल खत कोड िलख
<html>
<head>
<style>
.center {
text-align:right;
color: blue;
}
h1.center {
text-align: center;
color: red;
}
162
CITS : IT & ITES - कं ूटर सॉ वेयर ए ीके शन - अ ास 44

