Write html code to display a text maharashtra state board having background color yellow and should be underlined by using any css
Answers
Answered by
2
PLEASE REFER TO THE ATTACHMENT
Attachments:
Answered by
3
Html
<html>
<body>
<h1 style="background-color:yellow; text-decoration:underline"> maharashtra state board</h1>
</body>
</html>
Here we have used a heading tag to display text, and for styling, we have inline CSS where we have used background-color property to change the background color while text-decoration property to get underline under the text. Here, instead of using heading tag to put text, we could have used other tags such as <p> paragraph tag.
Similar questions