Computer Science, asked by kuldeepkumar60, 9 months ago

Write the HTML code for the following
(a) Background color yellow.
(b) Horizontal line green
(c) A heading align in centre.
d) List of hobbies as ordered list​

Answers

Answered by Abhis506
2
  • HTML coding for Background color yellow.

To set the background color in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <body> tag, with the CSS property background-color. HTML5 do not support the <body> tag bgcolor attribute, so the CSS style is used to add background color.

  • HTML code for Horizontal line green

In HTML5, the <hr> tag defines a thematic break. In HTML 4.01, the <hr> tag represents a horizontal rule. However, the <hr> tag may still be displayed as a horizontal rule in visual browsers, but is now defined in semantic terms, rather than presentational terms.

Similar questions