.Write the HTML code to display a horizontal rule of blue color aligned left having size 5 pixel and width =60% .
Answers
Answer:
This section of the specification discusses some HTML elements and attributes that may be used for visual formatting. Generally speaking you are recommended to use style sheets instead. An exception is when dealing with user agents that either don't support style sheets or which don't support the particular style sheet features needed. A number of HTML 4.0 elements and attributes dealing with visual presentation are deprecated and may become obsolete in future versions of HTML.
Formatting
Background color
Attribute definitions
bgcolor = color
Deprecated.This attribute sets the background color for the document body or table cells.
This attribute sets the background color of the canvas for the document body (the BODY element) or for tables (the TABLE, TR, TH, and TD elements). Additional attributes for specifying text color can be used with the BODY element.
This attribute has been deprecated in favor of style sheets for specifying background color information.
Alignment
It is possible to align block elements on the canvas (tables, images, objects, paragraphs, etc.) with the align element. Although this attribute may be set for many HTML elements, its range of possible values sometimes differs from element to element.
Attribute definitions
align = left|center|right|justify
Deprecated. This attribute specifies the horizontal alignment of its element with respect to the surrounding context.