Learn HTML Code Tutorial Reference Guide

Attributes for <EMBED ...>
HREF = "URL"
TARGET = "text string"

Usage Recommendation
don't use it thumbs down

HREF and TARGET allow you to make the media object into a hyperlink. They work just like their counterparts <A HREF="..."> and <A TARGET="...">. Note that you have to click somewhere besides the controls area to follow the link. The use of these attributes in <EMBED ...> is an MSIE extension.

this code produces this
<EMBED 
    SRC="../graphics/clickme.avi"
    HREF="../"
    AUTOSTART=TRUE LOOP=TRUE
    WIDTH=115 HEIGHT=60
    CONTROLLER=FALSE
    ><BR>
<A HREF="../">Home Page</A>

Home Page

HREF can also be used with a sound, but because the user has to click somewhere besides the controls to follow the link, it is hopelessly difficult to communicate that the sound is a link:

this code produces this silly link
Click in the sound area but not in 
the controls to go to the home page
<EMBED 
    SRC="../graphics/sounds/helloo.wav"
    HREF="../"
    HEIGHT=100 WIDTH=144
    >
Click in the sound area but not in the controls to go to the home page

HREF used in <EMBED ...> is probably just getting too fancy. It only works with MSIE, and because it is so unusual, most users won't realize the movie is a link. This is one trick it is probably best to avoid.




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial