Multimedia Tag Reference

|  | Search W3Schools : |

HOME | HTML | CSS | XML | JAVASCRIPT | ASP | PHP | SQL | MORE... |  | References | Examples | Forum | About

ADVERTISEMENTS XML Certification Download XML editor Custom Programming |  |

Table of contents

Media Basic
Media HOME
Media Intro
Sound Formats
Video Formats
Playing Sounds
Playing Videos
Windows Formats
Object Element
Object Intro
Object QuickTime
Object RealVideo
References
Tag Reference
Media Player Ref
MIME Reference

Selected Reading

Web Statistics
Web Glossary
Web Hosting
Web Quality
W3Schools Tutorials
W3Schools Forum
Helping W3Schools

# Web Multimedia Element Reference

## The <bgsound> Element

Attribute | Function
--- | ---
id | A unique id for the element.
src | The location (URL) of the source file.
balance | The balance. (-10000=left, +10000=right).
loop | The number of loops. (-1=infinite).
volume | The volume. (0=max, -10000=min).

## The <embed> Element

Attribute | Defines
--- | ---
autostart | Automatic start. (true | false).
height | The height of the element in pixels or %.
hidden | The visibility of the element. (true | false).
src | The location (URL) of the source file.
width | The width of the element in pixels or %.

See also styling attributes, common HTML attributes and Event attributes at the bottom of this page.

## The <applet> Element

Attribute | Defines
--- | ---
alt | An alternate text.
archive | The locations (URLs) of archive files.
code | The location (URL) of the applet code.
codebase | The base location (default URL) for all files.
height | The height of the applet in pixels or %.
name | The name of the applet.
object | A saved representation of the applet. Do not use.
width | The width of the applet in pixels or %.

See also styling attributes, common HTML attributes and Event attributes at the bottom of this page.

## The <object> Element

Attribute | Defines
--- | ---
archive | The locations (URLs) of archive files.
classid | The location (URL) of the object.
codebase | The base path used to resolve relative URIs specified by the classid, data, and archive attributes.
codetype | The content type of the code.
data | The location (URL) of object data.
declare | Do not instantiate (execute) the object.
height | The height of the object in pixels or %.
name | The object's name.
standby | Text to display while object is loading.
tabindex | The position in the tab order
type | The content type of the object.
usemap | The location (URL) of an image map.
width | The width of the player in pixels or %.

See also styling attributes, common HTML attributes and Event attributes at the bottom of this page.

## The <param> Element

The param element defines parameters to the object or applet elements.

Attribute | Defines
--- | ---
id | A unique id for the element.
name | Parameter name.
type | Parameter content type.
value | Parameter value.
valuetype | Parameter value type.

## Styling Attributes

Note: These attributes are deprecated. Use styles instead.

Attribute | Defines
--- | ---
align | The alignment of the object.
border | The border with in pixels.
hspace | The horizontal white-space (margin) in pixels.
vspace | The vertical white-space (margin) in pixels.

## Common HTML Attributes

Attribute | Defines
--- | ---
class | The element's class.
dir | The directionality of the element.
id | A unique id for the element.
lang | The language used by the element.
style | The element's style.
title | The elements title.

## Standard Events

Event | Handles
--- | ---
onclick | mouse clicked
ondblclick | mouse double clicked
onmousedown | mouse button pressed down
onmouseup | mouse button released
onmouseover | cursor moved onto the element
onmousemove | cursor moved within the element
onmouseout | cursor moved away from the element
onkeypressed | key pressed and released over the element
onkeydown | key pressed down over the element
onkeyup | key released over the element

## Altova® XMLSpy® - The world's best-selling XML editor!

Whether you're new to XML or already an advanced user, the user-friendly views and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to meet your XML and Web services development needs from start to finish.

- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!

Download a fully functional free 30-day trial today!

WEB HOSTING
ASP.NET Shopping Cart
$15 Domain Name Registration Save $20 / year!
Buy UK Domain Names Register Domain Names
Cheap Domain Names Cheap Web Hosting
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting

WEB BUILDING
Website Templates Flash Templates Website Builder Internet Business Opportunity
Custom Programming
FREE Trial or Demo Web Content Manager Forms,Web Alerts,RSS
Download XML editor
FREE Flash Website
FREE Web Templates

EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification

HOME or Top of Page |  | Printer Friendly
W3Schools is for training only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy. Copyright 1999-2009 by Refsnes Data. All Rights Reserved.