Q11. Identify the errors in the following HTML code. Also write the correct code.
<OL> type =”a” start=”d”>
Ans. The errors are;
- OL must not be followed by ’>’ i.e., ‘>’ must follows type and start attributes.
- The start attribute should be assigned a numeric value. The code is:
<OL type=”a” start =4>.
Q10. Write the full form of the following tags:
- <LI>: List Item
- <A>: Anchor
- <SUP>: Superscript
- <VLINK>: Visited Link
Q9. When can a comment be placed in a HTML document? How is it useful?
How do you give a comment in HTML?
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.
<HEAD> Read More …
Q8. List attributes of <HR> tag.
Ans. The one attribute of <HR> tag is size, width, Noshade, and color.
Q7. What does the <BODY> tag in HTML contain?
Ans. the <BODY> tag contains all the content of an HTML document, such as text, images, table, and hyperlinks.
Q6. List any two types of alignments that can be applied on a paragraph in HTML.
Ans. The alignments that can be applied on a paragraph are;
- Left alignment
- Right alignment
Q5. Write the difference between <H1> and <H6> heading tag.
Ans. H1 and H6 represent two different heading levels. The headings are differentiated on the basis of their typeface, point-size, and the space between the headings.
Q4. What is the purpose of HTML?
Ans. The purpose HTML is to display text, images, and hyperlinks in a Web browser.
Q3. Distinguish between the <BASEFONT SIZE> and the <FONT SIZE> tag with the help of an example for each?
Ans. The <BASEFONT SIZE> tag is used to change the default font size in a Web page, whereas, the <FONT SIZE> tag is used to change the font size of the text which is enclosed in this tag.
Example for <BASEFONT SIZE>:
<BASEFONT COLOR=”red” FACE=”Algerian” SIZE=”6”>
<TITLE> WELCOME TO HTML</TITLE>
This is an example of BASEFONT tag
</BODY> Read More …
Q2. Identify the error(s) in the following HTML code. Also write the correct code.
<BODY Color=”Red” background=”School.jpg”>
Ans. The errors in the given code are:
- Color is not an attribute of <BODY> tag and the color attribute is written as bgcolor.
- Bgcolor and background attributes should not be written together. Because the background attribute overrides the effect of bgcolor attribute.
Read More …