HTML Ques.

Q1.

a. What is an attribute in HTML?

b. How would you preview changes made in an HTML code without closing the HTML document in the text editor?

c. Name two common graphic file formats that most browsers recognize.

d. Which heading element gives the most prominent heading?

e. Expand the following tags used in HTML:

  • <HR>
  • < SUB >
  • <UL>
  • < A >

f. Distinguish between container and empty tags.

g. Write code to insert an image “picture.gif ” on a Web page and center align it in the browser’s window.

h. Find error(s) in the following HTML code segment. Rewrite the correct code and underline the corrections made.

<UL STYLE : square >

<LI> Water Bottles

<LI> Lunch box

<LI> Handkerchief

</OL>

Ans. a. An attribute provides additional information about the HTML tag. For example, to specify a background color for a Web page, you need to use the BACKGROUND attribute with the <BODY> tag.

 

Ans. b. You can preview the changes by refreshing the HTML page.

 

Ans. c. .jpg and .gif are two common file formats that most browsers recognize.

 

Ans. d. The heading level H1 gives the most prominent heading.

 

Ans. e.

<HR>: Horizontal Rule

< SUB >: Subscript

<UL>: Unordered List

< A >: Anchor

 

Ans. f. The difference between container and empty tags is:

Container tag: Refers to a tag that contains an opening as well as a closing tag.

Empty tag: Refers to a tag that contains only an opening tag.

Ans. g.

<HTML>

<HEAD>

<TITLE>IMAGE

</TITLE>

</HEAD>

<BODY>

<center><IMG SRC=”picture.gif”></IMG></

center>

</BODY>

</HTML>

Ans. h. The list tags are not closed properly. The closing tag of a list should be </UL>.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: