Presentation is loading. Please wait.

Presentation is loading. Please wait.

HTML Lab4 Ins.Samia alblwi. O UTLINE : 1-Links 2-Frame.

Similar presentations


Presentation on theme: "HTML Lab4 Ins.Samia alblwi. O UTLINE : 1-Links 2-Frame."— Presentation transcript:

1 HTML Lab4 Ins.Samia alblwi

2 O UTLINE : 1-Links 2-Frame

3 HTML H YPERLINKS (L INKS ) 1-A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or a new section within the current document. 2-Links are specified in HTML using the tag. 3-The tag can be used in two ways: A-To create a link to another document, by using the href attribute B-To create a bookmark inside a document, by using the name attribute

4 HTML H YPERLINKS (L INKS ) HTML Link Syntax Link text The href attribute specifies the destination of a link.

5 Local file: Note:if the links refer to page inside subfolder at current folder text

6 L INK INSIDE D OCUMENT A named anchor inside an HTML document: Create a link to the "Useful Tips Section" inside the same document: Useful Tips Section Visit the Useful Tips Section

7

8

9

10 HTML L INKS - T HE TARGET A TTRIBUTE The target attribute specifies where to open the linked document. The example below will open the linked document in a new browser window or a new tab: lab2

11 L INKS COLOR 1-LINK 2-ALINK 3-VLINK

12 MAILTO

13 F RAMES With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others.

14 1-The tag defines how to divide the window into frames 2-Each frameset defines a set of rows or columns 3-The tag defines what HTML document to put into each frame Important: You cannot use the tags together with the tags!

15 Note: The frameset column size value can also be set in pixels ( cols="200,500" ), and one of the columns can be set to use the remaining space ( cols="25%,*" ).

16

17 E XERCISE


Download ppt "HTML Lab4 Ins.Samia alblwi. O UTLINE : 1-Links 2-Frame."

Similar presentations


Ads by Google