Use of the tag Syntax: content Attributes of the a element (See page HTML 84).
CNN Use of complete URL With title attribute: CNN With blank target: CNN
1. Create a folder and name it camshots. 2. Download all the files from the practice folder in tutorial.02 and save them in the camshots folder. 3. Open contesttxt.htm and save it as contest.html. 4. In contest.html, mark the text BetterPhoto.com as an hypertext link pointing to the URL http://www.betterphoto.com. http://www.betterphoto.com 5. Set the attribute of the link so that it opens in a new browser window or tab.
What is an email link? Syntax: text Example: Collier Adding the email subject to email link: text Example: Collier
1. In the aside element, mark the text Gerry Hayward as a hypertext link to an email address with email@example.com as the email address. 2. Add Photo Contest as the subject line within the email link.
Link to another Web page within the same Web site Independent internal link Internal links (part of the navigational bar) Internal links to a local file
1. Scroll down to the second article. Link the text Child Photos to the child.html file. Link Flower Photos to the flower.html file. Link Scenic Photos to the scenic.html file.
Use of CSS to format the navigation bar Common use of internal links for the navigation bar: The links are part of an unordered list inside the nav structural element. Example: HOME ABOUT US
1. Directly below the header element, create a navigation list containing an unordered list with the following list items as hyperlinks: a.Home linked to the index.html file b.Tips linked to the tipweek.html file c.Contest linked to the contest.html file d.Glossary linked to the photogloss.html file 2. Copy the navigation bar and paste it on index.html, tipweek.html, and photogloss.html.
Links to non-HTML documents: Word documents, PDF documents, etc. Examples on some existing Web sites. Example: Companys By-Laws