1. Document Type
The document type element is the first element in an HTML document and should be placed on the first line. This element tells the browser’s processor what type of HTML document it is.
The <!DOCTYPE>
declaration is not an HTML tag; it is an instruction to the web browser indicating the HTML page’s version.
HTML
<!DOCTYPE html>
html
- Previous
- Next