Interview :: HTML
41) How are tags migrated from HTML4 to HTML5?
No. | Typical HTML4 | Typical HTML5 |
---|---|---|
1) | ||
2) | ||
3) | ||
4) | ||
5) |
Header and Footer Example
42) If I do not put <!DOCTYPE html> will HTML 5 work?
No, the browser will not be able to identify that it is an HTML document and HTML 5 tags do not function properly..
43) What is the use of the required attribute in HTML5?
It forces a user to fill text on the text field or text area before submitting the form. It is used for form validation.
Example:
44) What are the new <input> types for form validation in HTML5?
The new input types for form validation are email, URL, number, tel, and date.
Example: