{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Links - Links 2:24 PM Links Tag Description Type Attributes...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
5/25/10 2:24 PM Links Page 1 of 3 http://www-rcf.usc.edu/~trinagre/itp104/lectures/Links.html Links Tag Description Type Attributes Location a hyperlink in line element href, target (_blank), title, name, tabindex, accesskey body When you want to link from one page to another, use the <a> element. The href attribute of the <a> element specifies the destination of the link. The content of the <a> element is the label for the link. The label is what you see on the web page. By default, it's underlined (and usually blue) to indicate you can click on it. You can use words or an image as the label for a link. When you click on a link, the browser loads the web page that is specified in the href attribute. You can link to files in the same folder, or files in other folders. A relative path is a link that points to other files on your website relative to the web page you are linking from. Use ".." to link to a file that is one folder above (or parent folder) the file you are linking from. You can use relative paths or URLs in your <a> element's href attribute to link to other web pages. For other pages in your site, it's best to use relative paths, and use URLs for external links.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}