S.No 1: What is <!Doctype html> in HTML5? Ans:<!DOCTYPE html> is an HTML5 declaration that is used at the beginning of an HTML document to specify the document type and version. It tells the browser ...
Retrieves a single element with a specific ID. Use it when you need to access a unique element on the page. Example: const myElement = document.getElementById("myId ...