GetDotted Domains

Viewing Thread:
"The Fabulous Embed Tag"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Fri 11/08/06 at 19:39
"nitrogoat.co.uk"
Posts: 76
In HTML the tag is used to embed (insert) plugins - such as video and audio clips. It is a widely adaptable tag and yet very simple to use. You can make the code as simple or as complex as you like depending on how you want the plugin to perform.

Lets Get Started

This is the most basic form of the code and provides the core for us to build on. Open up your HTML code for your website and type the following:

<embed src="name">

Replace "name" with the address of your media file, including the extension (i.e .swf, .wav, .wmv), which we will assume is a movie clip. When you view the webpage now you will see the movie you inserted in a smallish box. This is the default view of a video file without more coding in the embed tag. Additional code improves the functioning and presentation of the video in the webpage.

Movie Clip:Sizing

First we will look at how to set the height and width of the video. Use the code:


<embed src="name" height="280" width="450">

Now the movie will be a much more comfortable size for viewing. You can set the height and width values to whatever suits you and the layout of your page. Setting the Height and Width as above is called setting a parameter and tells the browser how to view it.

Always set values for Height and Width as nasty errors can sometimes occur when they are left blank.

Movie Clip:Behaviour

Telling the browser how you want the video to act once the page is loaded can be extremely useful. Here are some attributes that can be set, just place the code anywhere in the embed tag.

autoplay="true"
The video will play without any interaction needed by the viewer.


autoplay="false"
You need to click the play button to start the movie. This is the default as so doesnt need to be included if you want the movie to behave like this.

hidden="true"
Hides the video.
You don't need to add hidden="false" to stop the movie from being hidden.

name="my_video"

Name your video - not entirely necessary. Useful if you want to refer to your video in javascript.

pluginspace="webaddress"

If the video cannot be played by the visitor's browser a link is shown ("webaddress") to where the plugin to view the file can be downloaded.
It is a good idea to include this as it will stop visitors from being deterred from the rest of your site if they see that there is a pluginspace to help them view the video.

loop="true"

Loops the movie continuously.

playcount="2"

Set a value for the number of times you want to make the video play.

Video URL Links

Just like image files, video clips can be used as links to webpages. The code is the same with videos except the <a href> tag goes around the <embed> tag instead of the <img> tag. Like this ..


<a href="www.freeola.com">
<embed src="freeola_rocks.wmv" height="350" width="260" loop="true">
</a>


You must remember to add the </a> tag at the end, otherwise everything after where the tag should be on the page will act as a link.

Webdesigner Tip:Images and text act as much better links than videos, the occassional video link is OK.

I hope you found this very useful.Thanks for reading!
Nitro_goat
There have been no replies to this thread yet.
Fri 11/08/06 at 19:39
"nitrogoat.co.uk"
Posts: 76
In HTML the tag is used to embed (insert) plugins - such as video and audio clips. It is a widely adaptable tag and yet very simple to use. You can make the code as simple or as complex as you like depending on how you want the plugin to perform.

Lets Get Started

This is the most basic form of the code and provides the core for us to build on. Open up your HTML code for your website and type the following:

<embed src="name">

Replace "name" with the address of your media file, including the extension (i.e .swf, .wav, .wmv), which we will assume is a movie clip. When you view the webpage now you will see the movie you inserted in a smallish box. This is the default view of a video file without more coding in the embed tag. Additional code improves the functioning and presentation of the video in the webpage.

Movie Clip:Sizing

First we will look at how to set the height and width of the video. Use the code:


<embed src="name" height="280" width="450">

Now the movie will be a much more comfortable size for viewing. You can set the height and width values to whatever suits you and the layout of your page. Setting the Height and Width as above is called setting a parameter and tells the browser how to view it.

Always set values for Height and Width as nasty errors can sometimes occur when they are left blank.

Movie Clip:Behaviour

Telling the browser how you want the video to act once the page is loaded can be extremely useful. Here are some attributes that can be set, just place the code anywhere in the embed tag.

autoplay="true"
The video will play without any interaction needed by the viewer.


autoplay="false"
You need to click the play button to start the movie. This is the default as so doesnt need to be included if you want the movie to behave like this.

hidden="true"
Hides the video.
You don't need to add hidden="false" to stop the movie from being hidden.

name="my_video"

Name your video - not entirely necessary. Useful if you want to refer to your video in javascript.

pluginspace="webaddress"

If the video cannot be played by the visitor's browser a link is shown ("webaddress") to where the plugin to view the file can be downloaded.
It is a good idea to include this as it will stop visitors from being deterred from the rest of your site if they see that there is a pluginspace to help them view the video.

loop="true"

Loops the movie continuously.

playcount="2"

Set a value for the number of times you want to make the video play.

Video URL Links

Just like image files, video clips can be used as links to webpages. The code is the same with videos except the <a href> tag goes around the <embed> tag instead of the <img> tag. Like this ..


<a href="www.freeola.com">
<embed src="freeola_rocks.wmv" height="350" width="260" loop="true">
</a>


You must remember to add the </a> tag at the end, otherwise everything after where the tag should be on the page will act as a link.

Webdesigner Tip:Images and text act as much better links than videos, the occassional video link is OK.

I hope you found this very useful.Thanks for reading!
Nitro_goat

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

10/10
Over the years I've become very jaded after many bad experiences with customer services, you have bucked the trend. Polite and efficient from the Freeola team, well done to all involved.
Easy and free service!
I think it's fab that you provide an easy-to-follow service, and even better that it's free...!
Cerrie

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.