Identify the errors in HTML code.

Q11. Identify the errors in the following HTML code. Also write the correct code.

<OL> type =”a” start=”d”>

Ans. The errors are;

  1. OL must not be followed by ’>’ i.e., ‘>’ must follows type and start attributes.
  2. The start attribute should be assigned a numeric value. The code is:

<OL type=”a” start =4>.

Comment in HTML.

Q9. When can a comment be placed in a HTML document? How is it useful?

OR

How do you give a comment in HTML?

OR

Where can a comment be placed in an HTML document? How is it useful?

Ans. Comments are special type of textual information which appears in the HTML code, but not is a part of the layout of the Web page.

<HTML>

<HEAD> Read More …