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:
- < SUB >
- < 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
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.
<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. h. The list tags are not closed properly. The closing tag of a list should be </UL>.