Web Development Ninjas Question: Download Ninjas Web Developer PDF
Tell me what is the difference between linking to an image, a website, and an email address?
Answer:
o link an image, use <img> tags. You need specify the image in quotes using the source attribute, src in the opening tag. For hyperlinking, the anchor tag, <a>, is used and the link is specified in the href attribute. Text to be hyperlinked should be placed between the anchor tags. Little known fact: href stands for “hypertext reference.” When linking to an email, the href specification will be “mailto:send@here.com.” See examples below:
<img src=”HTMLLinks.jpg”></img>
<a href=”http://www.globalguideline.com/”>Global Guideline</a>
<a href=”hussain@globalguideline.com.com”>Email Me</a>
<img src=”HTMLLinks.jpg”></img>
<a href=”http://www.globalguideline.com/”>Global Guideline</a>
<a href=”hussain@globalguideline.com.com”>Email Me</a>
Previous Question | Next Question |
Tell me what is the difference between HTML elements and tags? | What is the new DOCTYPE? |