मराठी

Sonal has been given an incomplete HTML code. Help her to complete the code by filling in the blanks as per the mentioned specifications: (i) Line 1: The background color of the paragraph should - Computer Applications

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>
  1. Line 1: The background color of the paragraph should be Green.
  2. Line 2: The font size of the paragraph text should be 12.
  3. Line 3: The alignment of the paragraph text should be center.
  4. 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
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×