..


Sponsored Links

Multimedia: audio and video

Specific needs of particular sites include the presence of elements of audio and video elements in your pages.

Consider, for example, an online music store that allows you to listen to previews of songs you wish to purchase, or a journal that allows you to see certain services, or to a TV online.

In one case, another, or another yet, let's just say that the 'HTML allows the management of multimedia elements.

We see a very simple example to insert background music on a Web page, for example suitable to the site of a famous singer:

 



 <bgsound src="canzone.mp3" loop="1">

 
The bgsound tag (which is recommended to set as the last line of the page so as not to slow the loading of the same) supports src attribute that specifies the name and path of the audio file in question, and the attribute loop that allows you to specify the number of times that the music file to be repeated when the end comes, and accepts a numeric value or the special value unlimited, which iterates the sound indefinitely, until of course the page will be closed.

Now on to the most handsome and professional element, suitable to the management of audio and video: embed.

Here's an example:

 



 <embed src="canzone.mp3" autostart="false" loop="1"> </ embed>

 
The autostart attribute accepts the values ​​true or false and determines whether or not the file will start by itself when the page loads.

This fact shows feature a multimedia screen that can be sized with a width and height.

Other media allowed in Web pages are Flash movies and Java applets.

HTML Help
E-Learning
CSS (Course) CSS (Course)
Web Design and Accessibility according to W3C CSS and XHTML. Starting from 29 €.
HTML (Course) HTML (Course)
The markup language for the Web from 29 €.
Web Design (Course) Web Design (Course)
Design Web Sites with HTML, CSS and Dynamic HTML. From 39 €.
Sponsored Links