What are the different types of <!DOCTYPE> are available in HTML5?
It is used to create a reference to a Document Type Definition. In HTML 5, Doctype declaration is only needed to enable a standard mode for documents which are written with the HTML syntax. Hence, the Doctype for HTML 5 is short and case-insensitive.
- <!DOCTYPE html>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
BY Best Interview Question ON 12 Mar 2020