HTML code to set the image stored in My Pictures folder.

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”>

How can text be displayed in place of an image for users whose browsers do not support images?

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.

What do IMG and SRC mean.

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 …

Which tag and attributes are used.

Q2. Which tag and attributes are used to jump to:
a. A new page
b. Another location in the same page?
Ans.
a. <A href=url_of_new.page> Click here to open New Page </A>
b.

  1. <A name=”anotherLocationIn SamePage”> Click here to open another location in same page</A>\ Read More …

Explain use of NAME and HREF attributes of the A tag.

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 …

Difference between internal and external linking.

Q10. Explain the difference between internal linking and external linking in HTML.
Ans.
In HTML, external linking refers to the type of link which, on clicking, opens a document or a Web Page (to which the hyperlink is linked) in a new window. On the other hand, internal linking allows us to link different sections of the same web page as well as different sections of the Web Page.

Purpose of the MAILTO function.

Q8. What is the purpose of the MAILTO function?
Ans.
  The MAILTO function is used to send an email message to multiple recipients. For this, we only need to type the email addresses of the recipients in the same link, separated by commas. We should not put return ( or space) in the middle of the list as it may not be identified by the Email window.

Which tag is used for inserting an image in a web page?

Q6. Which tag is used for inserting an image in a web page? Explain with an example.
Ans.
The <IMG> tag is used for inserting an image in a document, for example,
< HTML>
<HEAD>
<TITLE> Inserting an image</TITLE>
</HEAD>
< BODY>
<IMG SCR=”water.jpg”>
</BODY>
</HTML>