Advanced HTML Elements
In the previous lesson, we covered some common HTML elements. Now, let's explore some advanced HTML elements and their usage.
HTML forms are used to collect user input. Here are some common form elements:
HTML also supports multimedia elements such as audio and video. Here are some examples:
Let's see how to use some of these advanced elements in an HTML document:
<form action="/submit-form" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name"><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br>
<input type="submit" value="Submit">
</form>
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>