HTML DOCTYPE | Recode

HTML,HTML DOCTYPE,

Doctypes:
We have to write doctype html at the beginning of html file. The long form of doctype is 'document type'. Doctype HTML helps all browsers to display/load HTML files or web servers. Doctype is 5th version of HTML. Doctype declaration is not an HTML tags and belong at the vary top of a document.

Adding the Doctypes with Basic Structure:

Doctype should always be included at the top of the HTML document, before the <HTML> tag. 


<!DOCTYPE html>
<html>
<head>
<title> Adding Doctype </title>
<head>
<body>
<h1> Successfully added <!DOCTYPE html> in html file.
</body>
</html>

HTML 5 Declaration:

<!DOCTYPE html>

Doctype some case is not valid for crate a code.
  • <!doctype html>
  • <!DocTYpe html>
  • <!doCtyPe html>

Getting Info...

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.