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 …
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.
Q9. Name the tag used for linking in HTML. What are the main attributes of this tag?
Ans. The <A> tag is used for linking documents in HTML. The main attributes of the <A> tag are HREF, NAME and TITLE.
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.
Q7. Which attribute is used for aligning an image in HTML?
Ans. The ALIGN attribute is used for aligning an image in HTML.
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,
<TITLE> Inserting an image</TITLE>