HTML 1.0: It was the first release but had very limited usage.
HTML 2.0: Released by adding some new features to HTML 1.0, this was the standard application for website development.
HTML 3.0: Due to improper standards of the existing version of HTML, popular browser developer Netscape Navigator had some of its own tags. This is when HTML 3.0 was introduced.
HTML 3.2: This version stopped the non-standardized HTML by introducing World Wide Web Consortium (in short W3C) to keep the language standardized.
HTML 4.0: Created an evolution as the browser support was undertaken by Microsoft in their Internet Explorer (IE).
HTML 5.0: The current version of HTML which was introduced especially to work with any type of devices like mobile, tablets, large monitors etc.
The <!DOCTYPE HTML> indicates the version of HTML which in this case is 5. The earlier versions like HTML4 were based on Standard Generalized Markup Language (SGML) and required a Document Type Definition (DTD). HTML5 however, is not based on SGML and doesn’t need a DTD.
HTML5 introduced few structural elements to define different parts of a web page like article, header, footer, main, mark and many more.
These are sections in which a web page is usually divided into. In HTML4, the same was implemented using div with an id/class name to it.
Meta tags are the tags that provide more information to our web pages. Some of the tags that are examples for meta are:
As there is no direct key to type and insert the copyright symbol in a web page, it has to be given by combining different characters. This can be done in multiple ways like:
The HTML5 standard introduced a number of new APIs. Here is a small list:
Answer: Meta tags in HTML are used by the developer to tell the browser about the page description, author of the template, character set, keywords and many more.
Meta tags are used for search engine optimization to tell the search engine about the page contents.
<meta charset="UTF-8"> |
<meta name="viewport" content="width=device-width, initial-scale = 1.0"> |
<meta name="description" content="HTML interview questions"> |
<meta name="author" content="Author Name"> |
<meta name="copyright" content="All Rights Reserved"> |
Answer: Enlisted below are the list elements in HTML:
Answer: An anchor tag or <a> tag in HTML is used to create hyperlinks. This creates a path between two different HTML web pages.
Hyperlinks can be displayed in three ways:
Answer: The required attribute is used in HTML to make the field mandatory. It forces the user to fill that particular field to submit the form.
If the field is input then it will throw a default HTML error.
<input type="email" name = "user_email" required /> |
Answer: The new form elements that were added into HTML5 are: