HTML Tutorial || Networking Assignment || Computer Full Forms || Ms-Office Shortcut Keys || Ms-Office Notes || Number System Notes || Internet Assignment
JavaScript Tutorial || CSS Tutorial || Operating System Notes || History of Computer Assignment || Netwoking Notes || Computer Fundamentals Notes

HTML Multimedia Theory With Examples :- Infinity4Education


HTML Multimedia


Multimedia on the web is sound, music, videos, movies, and animations.


What is Multimedia?
Multimedia comes in many different formats. It can be almost anything you can hear or see, like images, music, sound, videos, records, films, animations, and more.
Web pages often contain multimedia elements of different types and formats.


Browser Support
The first web browsers had support for text only, limited to a single font in a single color.
Later came browsers with support for colors, fonts, images, and multimedia!


Multimedia Formats
Multimedia elements (like audio or video) are stored in media files.
The most common way to discover the type of a file, is to look at the file extension.
Multimedia files have formats and different extensions like: .wav, .mp3, .mp4, .mpg, .wmv, and .avi.


Common Video Formats
There are many video formats out there.

The MP4, WebM, and Ogg formats are supported by HTML.

The MP4 format is recommended by YouTube.

Format
File
Description
MPEG
.mpg
.mpeg
MPEG. Developed by the Moving Pictures Expert Group. The first popular video format on the web. Not supported anymore in HTML.
AVI
.avi
AVI (Audio Video Interleave). Developed by Microsoft. Commonly used in video cameras and TV hardware. Plays well on Windows computers, but not in web browsers.
WMV
.wmv
WMV (Windows Media Video). Developed by Microsoft. Commonly used in video cameras and TV hardware. Plays well on Windows computers, but not in web browsers.
QuickTime
.mov
QuickTime. Developed by Apple. Commonly used in video cameras and TV hardware. Plays well on Apple computers, but not in web browsers.
RealVideo
.rm
.ram
RealVideo. Developed by Real Media to allow video streaming with low bandwidths. Does not play in web browsers.
Flash
.swf
.flv
Flash. Developed by Macromedia. Often requires an extra component (plug-in) to play in web browsers.
Ogg
.ogg
Theora Ogg. Developed by the Xiph.Org Foundation. Supported by HTML.
WebM
.webm
WebM. Developed by Mozilla, Opera, Adobe, and Google. Supported by HTML.
MPEG-4
or MP4
.mp4
MP4. Developed by the Moving Pictures Expert Group. Commonly used in video cameras and TV hardware. Supported by all browsers and  recommended by YouTube. 
Only MP4, WebM, and Ogg video are supported by the HTML standard.


Common Audio Formats
MP3 is the best format for compressed recorded music. The term MP3 has become synonymous with digital music.
If your website is about recorded music, MP3 is the choice.
Format
File
Description
MIDI
.mid
.midi
MIDI (Musical Instrument Digital Interface). Main format for all electronic music devices like synthesizers and PC sound cards. MIDI files do not contain sound, but digital notes that can be played by electronics. Plays well on all computers and music hardware, but not in web browsers.
RealAudio
.rm
.ram
RealAudio. Developed by Real Media to allow streaming of audio with low bandwidths. Does not play in web browsers.
WMA
.wma
WMA (Windows Media Audio). Developed by Microsoft. Plays well on Windows computers, but not in web browsers.
AAC
.aac
AAC (Advanced Audio Coding). Developed by Apple as the default format for iTunes. Plays well on Apple computers, but not in web browsers.
WAV
.wav
WAV. Developed by IBM and Microsoft. Plays well on Windows, Macintosh, and Linux operating systems. Supported by HTML.
Ogg
.ogg
Ogg. Developed by the Xiph.Org Foundation. Supported by HTML.
MP3
.mp3
MP3 files are actually the sound part of MPEG files. MP3 is the most popular format for music players. Combines good compression (small files) with high quality. Supported by all browsers.
MP4
.mp4
MP4 is a video format, but can also be used for audio. Supported by all browsers.
Only MP3, WAV, and Ogg audio are supported by the HTML standard.

HTML Input Form Attributes With Example :- Infinity4Education


HTML Input form Attributes


This chapter describes the different form attributes for the HTML <input> element.


The form Attribute
The input form attribute specifies the form the <input> element belongs to.
The value of this attribute must be equal to the id attribute of the <form> element it belongs to.
Example
An input field located outside of the HTML form (but still a part of the form):
<form action="/action_page.php" id="form1">
  
<label for="fname">First name:</label>
  
<input type="text" id="fname" name="fname"><br><br>
  
<input type="submit" value="Submit">
</form>

<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname" form="form1">


The formaction Attribute
The input formaction attribute specifies the URL of the file that will process the input when the form is submitted.
Note: This attribute overrides the action attribute of the <form> element.
The formaction attribute works with the following input types: submit and image.
Example
An HTML form with two submit buttons, with different actions:
<form action="/action_page.php">
  
<label for="fname">First name:</label>
  
<input type="text" id="fname" name="fname"><br><br>
  
<label for="lname">Last name:</label>
  
<input type="text" id="lname" name="lname"><br><br>
  
<input type="submit" value="Submit">
  
<input type="submit" formaction="/action_page2.php" value="Submit as Admin">
</form>


The formenctype Attribute
The input formenctype attribute specifies how the form-data should be encoded when submitted (only for forms with method="post").
Note: This attribute overrides the enctype attribute of the <form> element.
The formenctype attribute works with the following input types: submit and image.
Example
A form with two submit buttons. The first sends the form-data with default encoding, the second sends the form-data encoded as "multipart/form-data":
<form action="/action_page_binary.asp" method="post">
  
<label for="fname">First name:</label>
  
<input type="text" id="fname" name="fname"><br><br>
  
<input type="submit" value="Submit">
  
<input type="submit" formenctype="multipart/form-data"
  value
="Submit as Multipart/form-data">
</form>


The formmethod Attribute
The input formmethod attribute defines the HTTP method for sending form-data to the action URL.
Note: This attribute overrides the method attribute of the <form> element.
The formmethod attribute works with the following input types: submit and image.
The form-data can be sent as URL variables (method="get") or as an HTTP post transaction (method="post").
Notes on the "get" method:
  • This method appends the form-data to the URL in name/value pairs
  • This method is useful for form submissions where a user want to bookmark the result
  • There is a limit to how much data you can place in a URL (varies between browsers), therefore, you cannot be sure that all of the form-data will be correctly transferred
  • Never use the "get" method to pass sensitive information! (password or other sensitive information will be visible in the browser's address bar)
Notes on the "post" method:
  • This method sends the form-data as an HTTP post transaction
  • Form submissions with the "post" method cannot be bookmarked
  • The "post" method is more robust and secure than "get", and "post" does not have size limitations
Example
A form with two submit buttons. The first sends the form-data with method="get". The second sends the form-data with method="post":
<form action="/action_page.php" method="get">
  
<label for="fname">First name:</label>
  
<input type="text" id="fname" name="fname"><br><br>
  
<label for="lname">Last name:</label>
  
<input type="text" id="lname" name="lname"><br><br>
  
<input type="submit" value="Submit using GET">
  
<input type="submit" formmethod="post" value="Submit using POST">
</form>


The formtarget Attribute
The input formtarget a attribute specifies a name or a keyword that indicates where to display the response that is received after submitting the form.
Note: This attribute overrides the target attribute of the <form> element.
The formtarget attribute works with the following input types: submit and image.
Example
A form with two submit buttons, with different target windows:
<form action="/action_page.php">
  
<label for="fname">First name:</label>
  
<input type="text" id="fname" name="fname"><br><br>
  
<label for="lname">Last name:</label>
  
<input type="text" id="lname" name="lname"><br><br>
  
<input type="submit" value="Submit">
  
<input type="submit" formtarget="_blank" value="Submit to a new window/tab">
</form>


The formnovalidate Attribute
The input formnovalidate attribute specifies that an <input> element should not be validated when submitted.
Note: This attribute overrides the novalidate attribute of the <form> element.
The formnovalidate attribute works with the following input types: submit.
Example
A form with two submit buttons (with and without validation):
<form action="/action_page.php">
  
<label for="email">Enter your email:</label>
  
<input type="email" id="email" name="email"><br><br>
  
<input type="submit" value="Submit">
  
<input type="submit" formnovalidate="formnovalidate"
  value
="Submit without validation">
</form>


The novalidate Attribute
The novalidate attribute is a <form> attribute.
When present, novalidate specifies that all of the form-data should not be validated when submitted.
Example
Specify that no form-data should be validated on submit:
<form action="/action_page.php" novalidate>
  
<label for="email">Enter your email:</label>
  
<input type="email" id="email" name="email"><br><br>
  
<input type="submit" value="Submit">
</form>


HTML Form and Input Elements
Tag
Description
<form>
Defines an HTML form for user input
<input>
Defines an input control