1.

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​

Answer»

ding 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

tag, with the CSS property background-color. HTML5 do not support the tag bgcolor attribute, so the CSS style is used to add background color.HTML code for Horizontal line greenIn HTML5, the
tag defines a thematic break. In HTML 4.01, the
tag REPRESENTS a horizontal rule. However, the
tag may STILL be displayed as a horizontal rule in visual browsers, but is now defined in semantic terms, rather than presentational terms.


Discussion

No Comment Found