Q5. Write the HTML code to set the image “Pen.JPG” stored in the “My Pictures” folder in C:\ as the background of your Web Page.
Ans. <BODY background=”C:\My Pictures\Pen.jpg”>
Q4. How can text be displayed in place of an image for users whose browsers do not support images?
Ans. By using the ALT attribute text be displayed in place of an image for users whose browsers do not support images.
Q3.What do IMG and SRC mean?
Ans. IMG means Image and SRC means Source.
The <IMG> tag helps in inserting an image in a Web page. the <IMG> tag uses the SRC (source) attribute, which takes the Uniform Resource Locator(URL) of the image file as value. If your image is located in the same folder as your HTML file then you do not need to specify the full path Read More …
Q2. Which tag and attributes are used to jump to:
a. A new page
b. Another location in the same page?
a. <A href=url_of_new.page> Click here to open New Page </A>
- <A name=”anotherLocationIn SamePage”> Click here to open another location in same page</A>\ Read More …
Q5. Explain the use of the NAME and HREF attributes of the <A> tag.
Ans. The NAME attribute defines a name of a section/ segment in a document. For example:
<A name=”segment1”> segment1</A>
The HREF attribute defines the URL of the target segment/ location/ page. For example: Read More …