HTML Lab4 Ins.Samia alblwi
O UTLINE : 1-Links 2-Frame
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
HTML H YPERLINKS (L INKS ) HTML Link Syntax Link text The href attribute specifies the destination of a link.
Local file: Note:if the links refer to page inside subfolder at current folder text
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
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
L INKS COLOR 1-LINK 2-ALINK 3-VLINK
MAILTO
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.
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!
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%,*" ).
E XERCISE