Presentation is loading. Please wait.

Presentation is loading. Please wait.

LINKS.

Similar presentations


Presentation on theme: "LINKS."— Presentation transcript:

1 LINKS

2 The Anchor <a> Element (Introduction)
The Anchor <a> element is used to create links to Another Web site Pages within the current Web site A position on a Web site page

3 The Anchor <a> Element (Syntax)
The href attribute contains the target URL It can contain an absolute or relative reference (more in a minute) The id attribute is used to create a bookmark in a document Also referred to as a named anchor Changed in HTML5 to id from name

4 The Anchor <a> Element (Syntax)
The markup in the element contains the ‘user visible link’ The rel attribute describes the semantic relationship of the link Replaces the rev attribute The new download attribute contains a file name to be downloaded The new type argument contains the MIME type of the linked document

5 The Anchor <a> Element (Link Example)
A link to UNR The user sees the text UNR Note that the visible link appears as the element content (UNR) <a href=“

6 Bookmarks (Introduction)
<a> tags are used to create links to a location within a (the same) document It’s a two-step process Create an element using the name or id attribute id is understood by newer browsers name is deprecated

7 Bookmarks (Creating the Anchor)
Create the anchor by setting the id attribute of any tag: <h1 id="top">IS 360</h1>

8 Bookmarks (Referencing the Anchor)
Reference the anchor using the <a> tag href contains the bookmark’s id preceded by the # symbol Example: <a href="#top">Top</a>

9 Bookmarks (Best Practices)
Use both name and id to support obsolete browsers


Download ppt "LINKS."

Similar presentations


Ads by Google