Question
Download Solution PDFIn HTML5, which of the following tag is used to initialize the document type ?
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFThe correct answer is option 4: <!DOCTYPE html>
Key Points
- <!DOCTYPE html> is the correct way to declare the document type in HTML5.
- It is a declaration that must appear at the very top of an HTML document, before the <html> tag.
- It tells the web browser that the document is written in HTML5, ensuring proper rendering.
- It is not case-sensitive but is conventionally written in uppercase for clarity.
Additional Information
- Option 1 – <Doctype HTML>: ❌ Incorrect syntax; HTML tags should be enclosed within <> and DOCTYPE is not a tag but a declaration.
- Option 2 – <\Doctype html>: ❌ Incorrect; uses an invalid backslash and incorrect capitalization.
- Option 3 – <Doctype>: ❌ Incomplete and incorrect declaration; not valid in HTML5.
- Option 4 – <!DOCTYPE html>: ✅ Correct declaration for HTML5 documents.
Hence, the correct answer is: option 4: <!DOCTYPE html>
Last updated on Jul 3, 2025
-> NIELIT Scientific Assistant answer key 2025 has been released at the official website.
-> NIELIT Scientific Assistant admit card 2025 has been released.
-> NIELIT Scientific Assistant city intimation slip 2025 has been released at the official website.
-> NIELIT Scientific Assistant exam 2025 is scheduled to be conducted on June 28.
-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.
-> Online application form, last date has been extended up to from 17th April 2025.
->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.
-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).