HTML Introduction
- 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.
- Which tag supports Non-English language?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
<bdo>, <rp>, <rt>, <ruby> are some tags which support Non-English language. <input> is for web forms and <audio>, <embed> are the tags for audio and plug-ins.
- 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.
- 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.