Advertisements
Advertisements
प्रश्न
Sonal has been given an incomplete HTML code. Help her to complete the code by filling in the blanks as per the mentioned specifications:
<html>
<head>
<style>
p {
______ : Green; /* Line 1 */
______ : 12px; /* Line 2 */
______ : center; /* Line 3 */
color: yellow;
}
______ { /* Line 4 */
width: 50%
}
</style>
</head>
<body>
<p> Saving the environment is crucial for a healthier Earth </p>
<hr>
</body>
</html>
- Line 1: The background color of the paragraph should be Green.
- Line 2: The font size of the paragraph text should be 12.
- Line 3: The alignment of the paragraph text should be center.
- Line 4: The width of the horizontal ruler should be 50%.
लघु उत्तर
Advertisements
उत्तर
- Line 1:
background-color(as specified for the paragraph’s background color) - Line 2:
font-size(as specified for the text size) - Line 3:
text-align(as specified for paragraph alignment) - Line 4:
hr(this is the selector for the horizontal ruler)
p {
background-color : Green; /* Line 1 */
font-size : 12px; /* Line 2 */
text-align : center; /* Line 3 */
color: yellow;
}
hr { /* Line 4 */
width: 50%
}
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2025-2026 (March) Official Board Paper
