HTML Introduction
- Which of the following is not semantic element for text in HTML5?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Semantic elements used for text are <mark>, <time>, <wbr> whereas <article>, <aside>, <figure>, <footer>, <header> etc. are the semantic elements for structuring a page in HTML5.
- What if one does not use the doctype in the starting of HTML document?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
If the browser finds in the starting of an HTML document it sets the document in standard mode but if one does not use a doctype, the browser goes to quirky mode. In this mode, certain content will not be displayed as per one wrote that. So it is always recommended to write a doctype at the very start of the HTML document.
- What is the correct syntax of doctype in HTML5?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The correct syntax of HTML5 doctype is <!doctype html>, doctype is the very first thing to write in HTML5. <!doctype html> or <!DOCTYPE HTML> both are same because ‘doctype’ keyword is not case sensitive.
- What application can one create even before the introduction of HTML5?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
With the help of HTML5 and JavaScript it became possible to create excellent mobile applications, browser based games, web applications and many more other applications. Forms were already introduced before HTML5.
- Which tag is used with JavaScript?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
<canvas> tag is basically used for graphics via scripting i.e. usually with Java Script (scripting language, basically used to create animations). Other tags like <table>, <article>, <footer> can be used simply with HTML.