- A webpage can contain various links that take you directly to other pages and even specific parts of a given page. These links are known as hyperlinks.
- Hyperlinks allow visitors to navigate between Web sites by clicking on words, phrases, and images.
- A link is specified using HTML tag <a>. This tag is called anchor tag and anything between the opening <a>tag and the closing </a> tag becomes part of the link
- Following is the simple syntax to use <a> tag.<a href="Document URL" ... attributes-list>Link Text</a>
- target attribute is used to specify the location where linked document is opened. Possible options are
_blank Opens the linked document in a new window or tab.
_self Opens the linked document in the same frame.
_parent Opens the linked document in the parent frame.
_top Opens the linked document in the full body of the window. - You can set colors of your links, active links and visited links using link, alink and vlink attributes of <body>tag.
- You can create text link to make your PDF, or DOC or ZIP files downloadable. This is very simple, you just need to give complete URL of the downloadable file.
- It's simple to use an image as hyperlink. We just need to use an image inside hyperlink at the place of text.
Material about computer programming languages like HTML, CSS, JavaScript, SQL, Java
Tuesday, 6 December 2016
HTML Links
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment