Professional Documents
Culture Documents
INTRODUCTION
Sometimes you need to add music or video into your web page. The easiest way to
add video or sound to your web site is to include the special HTML tag called <embed>. This
tag causes the browser itself to include controls for the multimedia automatically provided
browser supports <embed> tag and given media type.
EXAMPLE
<!DOCTYPE html>
<html>
<head>
<title>HTML embed Tag</title>
</head>
<body>
<embed src="/html/yourfile.mid" width="100%" height="60" >
<noembed><img src="yourimage.gif" alt="Alternative Media" ></noembed>
</embed>
</body>
</html>
You can put any media file in src attribute. You can try it yourself by giving various
types of files.
Following is the list of important attributes which can be used with <embed> tag.
ATTRIBUT DESCRIPTION
E
align Determines how to align the object. It can be set to either center, left or
right.
1
autostart This boolean attribute indicates if the media should start automatically.
You can set it either true or false.
loop Specifies if the sound should be played continuously (set loop to true), a
certain number of times (a positive value) or not at all (false)
playcount Specifies the number of times to play the sound. This is alternate option
for loop if you are usiong IE.
hidden Specifies if the multimedia object should be shown on the page. A false
value means no and true values means yes.
width Width of the object in pixels
height Height of the object in pixels
name A name used to reference the object.
src URL of the object to be embedded.
volume Controls volume of the sound. Can be from 0 (off) to 100 (full volume).
You can use various media types like Flash movies (.swf), AVI's (.avi), and MOV's
(.mov) file types inside embed tag.
.swf files - are the file types created by Macromedia's Flash program.
.wmv files - are Microsoft's Window's Media Video file types.
.mov files - are Apple's Quick Time Movie format.
.mpeg files - are movie files created by the Moving Pictures Expert Group.
<!DOCTYPE html>
<html>
<head>
<title>HTML embed Tag</title>
</head>
<body>
<embed src="/html/yourfile.swf" width="200" height="200" >
<noembed><img src="yourimage.gif" alt="Alternative Media" ></noembed>
</embed>
</body>
</html>
FONTS AND INSERTION
2
HTML <font> tag is deprecated in version 4.0 onwards and now all fonts are set by
using CSS. Here is the simple syntax of setting font of a body of web page.
<!DOCTYPE html>
<html>
<head>
<title>Font Setting Using CSS</title>
</head>
<body>
<p>Change any of the style and try it.</p>
<div style="font-family:verdana;">This is demo for font family</div>
<br />
<div style="font-size:120%;">This is demo for font size</div>
<br />
<div style="font-size:14pt;">This is demo for font size</div>
</body>
</html>
This will produce following result:
3
Arial Italic Arial Bold Italic Arial Black
Comic Sans MS Comic Sans MS Bold Courier New
Courier New Bold Courier New Italic Courier New Bold Italic
Georgia Georgia Bold Georgia Italic
Georgia Bold Italic Impact Lucida Console
Lucida Sans Unicode Marlett Minion Web
Symbol Times New Roman Times New Roman Bold
Times New Roman Italic Times New Roman Bold Tahoma
Italic
Trebuchet MS Trebuchet MS Bold Trebuchet MS Italic
Trebuchet MS Bold Italic Verdana Verdana Bold
Verdana Italic Verdana Bold Italic Webdings
You can also have more information on Microsoft Fonts at
http://www.microsoft.com/typography/fonts.
Following is the list of fonts supported by Macintosh System 7 and higher versions
4
CONCLUSION
You can also include a <noembed> tag for the browsers which don't recognize the
<embed> tag. You could, for example, use <embed> to display a movie of your choice, and
<noembed> to display a single JPG image if browser does not support <embed> tag. Fonts
are specific to platform. You will have different look and feel of a web page on different
machines running different operating systems like Windows, Linux or Mac iOS. Here we are
giving a list of fonts which are available in various operating systems.
REFERENCES
http://www.tutorialspoint.com/html/html_embed_multimedia.htm
http://inform7.com/extensions/typography/
http://www.tutorialspoint.com/html/html_fonts_reference.htm