HTML Audio Tag: HTML Audio Tag Is Used To Define Sounds Such As Music and Other Audio Clips. Currently There
HTML Audio Tag: HTML Audio Tag Is Used To Define Sounds Such As Music and Other Audio Clips. Currently There
HTML audio tag is used to define sounds such as music and other audio clips. Currently there
are three supported file format for HTML 5 audio tag.
1. mp3
2. wav
3. ogg
Eg:
<!DOCTYPE>
<html>
<body>
<audio controls>
</audio>
</body>
</html>
Attribute Description
Controls It defines the audio controls which is displayed with play/pause buttons.
autoplay It specifies that the audio will start playing as soon as it is ready.
Loop It specifies that the audio file will start over again, every time when it is completed.
Currently, there are three video formats supported for HTML video tag:
1. mp4
2. webM
3. ogg
Eg:
<!DOCTYPE>
<html>
<body>
<video controls>
</video>
</body>
</html>
Attributes of HTML Video Tag
Attribute Description
Controls It defines the video controls which is displayed with play/pause buttons.
Poster It specifies the image which is displayed on the screen when the video is not played.
autoplay It specifies that the video will start playing as soon as it is ready.
Loop It specifies that the video file will start over again, every time when it is completed.
Eg:
<!DOCTYPE>
<html>
<body>
</video>
</body>
</html>
HTML Canvas Tag
A canvas is a rectangle like area on an HTML page. It is specified with canvas element. By default, the
<canvas> element has no border and no content, it is like a container.
Eg:
<!DOCTYPE>
<html>
<body>
</canvas>
</body>
</html>
HTML <progress> tag supports the global and event attributes as well as 2 specific attributes.
Tag Description
value It defines that how much work the task has been completed.
max It defines that how much work the task requires in total.
Eg:
<!DOCTYPE>
<html>
<body>
Downloading progress:
</body>
</html>
The <datalist> tag should be used with an <input< element that contains a "list" attribute. The
value of "list" attribute is linked with the datalist id.
Eg:
<!DOCTYPE>
<html>
<body>
List of Sudents :
<datalist id="students">
<option value="STU1">
<option value="STU2">
<option value="STU3">
</datalist>
</body>
</html>
HTML figure tag
<!DOCTYPE>
<html>
<body>
<figure>
</figure>
</body>
</html>
It is an optional tag and can appear before or after the content within the <figure> tag.
Eg:
<!DOCTYPE>
<html>
<body>
<figure>
<figcaption>Image.</figcaption>
</figure>
</body>
</html>
HTML Summary Tag
The HTML <summary> tag is used with <details> tag. It is used as a summary, caption or legend
for the content of a <details> element.
Eg:
<!DOCTYPE>
<html>
<body>
<details>
<summary>MSC IT</summary>
<p>sem ii</p>
<p>sem iv</p>
</details>
</body>
</html>
When present, it specifies that an input field must be filled out before submitting the form.
EG:
<!DOCTYPE html>
<html>
<body>
<form action="">
Username: <input type="text" name="usrname" required>
<input type="submit" value=”click”>
</form>
</body>
</html>
Eg:
<html>
<body>
<form action="">
<select required>
<option value="">Select</option>
<option value="BCA">BCA</option>
<option value="MCA">MCA</option>
</select>
<input type="submit">
</form>
</body>
</html>
HTML <tbody> Tag
The <tbody> tag is used to group the body content in an HTML table.
The <tbody> element is used in conjunction with the <thead> and <tfoot> elements to specify
each part of a table (body, header, footer).
Eg:
<html>
<body>
<table border = "1">
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</tbody>
</table>
</body>
</html>
Eg:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>Number</th>
<th>Value</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Sum</td>
<td>180</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Number1</td>
<td>100</td>
</tr>
<tr>
<td>Number2</td>
<td>80</td>
</tr>
</tbody>
</table>
</body>
</html>