Link And Frameset: Pierre Anthony O. Oreto

  • Uploaded by: Anthony Oreto
  • 0
  • 0
  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Link And Frameset: Pierre Anthony O. Oreto as PDF for free.

More details

  • Words: 629
  • Pages: 22
Link and Frameset Pierre Anthony O. Oreto Instructor

Frameset Definition and Usage • The tag is not supported in HTML5. • The tag defines one particular window (frame) within a . • Each in a can have different attributes, such as border, scrolling, the ability to resize, etc. • Note: If you want to validate a page containing frames, be sure the is set to either "HTML Frameset DTD" or "XHTML Frameset DTD".

Frameset

Framset Attribute

Value

Description

frameborder

0 1

Not supported in HTML5. Specifies whether or not to display a border around a frame

longdesc

URL

Not supported in HTML5. Specifies a page that contains a long description of the content of a frame

marginheight

pixels

Not supported in HTML5. Specifies the top and bottom margins of a frame

marginwidth

pixels

Not supported in HTML5. Specifies the left and right margins of a frame

Framset Attribute

Value

Description

name

text

Not supported in HTML5. Specifies the name of a frame

noresize

noresize

Not supported in HTML5. Specifies that a frame is not resizable

scrolling

yes no auto

Not supported in HTML5. Specifies whether or not to display scrollbars in a frame

src

URL

Not supported in HTML5. Specifies the URL of the document to show in a frame

Frameset Vertical frameset A vertical frameset with three different documents.

Frameset

Frameset Horizontal frameset A horizontal frameset with three different documents.

Frameset

Frameset Mixed frameset A frameset with three documents, and how to mix them in rows and columns.

Frameset

Frameset Frameset with noresize="noresize" The frames are not resizable. Move the mouse over the borders between the frames and notice that you can not move the borders.

Frameset

Frameset Attribute

Value

Description

cols

pixels % *

Not supported in HTML5. Specifies the number and size of columns in a frameset

rows

pixels % *

Not supported in HTML5. Specifies the number and size of rows in a frameset

Target The Target Attribute specifies where to open the linked document. Syntax

Target Value

Description

_blank

Opens the linked document in a new window or tab

_self

Opens the linked document in the same frame as it was clicked (this is default)

_parent

Opens the linked document in the parent frame

_top

Opens the linked document in the full body of the window

framename

Opens the linked document in a named frame

Target

Open link in a new window or tab: Visit Youtube



Hyperlink • Definition and Usage • The href attribute specifies the URL of the page the link goes to. • If the href attribute is not present, the tag is not a hyperlink.

Hyperlink Syntax


Hyperlink Value

Description

URL

The URL of the link.Possible values: •An absolute URL - points to another web site (like href="http://www.example.com/default.htm") •A relative URL - points to a file within a web site (like href="default.htm") •Link to an element with a specified id within the page (like href="#top") •Other protocols (like https://, ftp://, mailto:, file:, etc..) •A script (like href="javascript:alert('Hello');")

Hyperlink • Link to an element with a specified id within a page (the name attribute is not supported in HTML5):
Go to top

Hyperlink • Link to an email address with a specified subject (will only work if you have mail installed): Send mail!

Related Documents


More Documents from ""