Q#1. What is HTML5?
Ans. HTML5 is the latest version of the HyperText Markup Language that can be referred to the WWW (World Wide Web) primary language, this markup language enhances a text file with bits of code, and this code which we can say as “markup” describes the structure of the document.
HTML5 provides some standard features like that of CSS, HTML, JavaScript, and DOM, which in turn will reduce the requirement of external plugins. It’s more markup to replace scripting, better error handling, etc. HTML5 is device independent.
Q#2. List out the new Structural Elements in HTML5.
Ans. 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.
Q#3. What are the New tags in Media Elements in HTML5?
Ans. The new tags in Media Elements in HTML5 are enlisted below:
Q#4. What is the use of the article tag?
Ans. It defines space for an article that is independently distributable. For example, A magazine or newspaper article.
Q#5. What is a tag in HTML5?
Ans. A tag is a special content in HTML5, which is surrounded by an angle bracket (<,>). A slash (/) symbol is used to close the tag after completing the block.
Q#6. How can we produce a horizontal line on a webpage?
Ans. A horizontal line can be produced on a web page using the hr tag. The other point to note about the hr tag is that it doesn’t have an end tag as most of the HTML tags do.
Q#7. What is the minimum number of HTML5 tags that are required to create a Web page?
Ans. Minimum 3 HTML5 tags are required to create a Web page, such as (HEAD, BODY, HTML).
Q#8. Why is the div tag so useful in developing HTML web pages?
Ans. The HTML div tag (ie div ... div) is used to create a section of a web page. It can hold another sections or elements in it. It is also possible to hold direct text in it, but not the one that is used.
Q#9. What is the importance of Drag and Drop in HTML5?
Ans. Drag and Drop is the most important User Interface concept which makes it easy to grab an object and Drag it at the place you want with the help of a mouse click.
Some common features that are mostly used by Drag and Drop operation include move, link or copy.
We can drag an image using elements, type = , to make an image draggable and set the draggable image attribute to true.
Q#10. Define the types of HTML Headings.
Ans. HTML holds 6 types of headings starting from h1 to h6. The heading one (h1) is the maximum font and h6 is the minimum font.