Professional Documents
Culture Documents
HTML-5
It is the fifth revision of HTML used to structure and present content on
the internet.It is designed to deliver the best possible experiences for all
users of all the devices from desktop to digital watch.
Improved semantic elements audio and Video Support , drag and drop
, offline Storage and many more.
Semantic Elements:
The HTML 5 <audio> and <video> tags makes it simple to add media to
a Website.You need to set 'Src' attribute identify the Media Source and
include a controls attribute so the user can play and pause the media.
Eg:
<body>
<audio controls>
<source src="audio/sample.mp3"type="audio/mpeg"> Yourbrowser does
not support the audio tag.
</audio>
<video controls width="480">
<source src="video/sample.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
Eg:
HTML 5 Form:
HTML 5 form defines a new type of form that made it easier to collect
data from the user.
*Auto complete: It allows the browser to suggest values as the user types.
*Min/Max:It is used to set the minimum and maximum value for an input
field.
*Formaction:It specifies the URL of the file that will process the input
control when the form is submitted.
*height and width: It specifies the height and width of an input field.
Eg:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Form Attributes Example</title>
</head>
<body>
<h2>Registration Form</h2>
<form action="/submit-form" method="post">
</form>
</body>
</html>
Copyright by @ARADix tech