type what you see below into the HTML editor, then look at the preview windw:
The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the tag.
The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.
exmample of Doctype:
<!DOCTYPE html>
<html>
<head>
<title>Your first website</title>
</head>
<body> <div style="background-color: #00f; color:red" >
<h1> This is a heading </ h1>
this is a p tag it stands for paragraph
<p> this is a paragraph </p>
</div>
<body>
<html>
The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.
exmample of Doctype:
<!DOCTYPE html>
<html>
<head>
<title>Your first website</title>
</head>
<body> <div style="background-color: #00f; color:red" >
<h1> This is a heading </ h1>
this is a p tag it stands for paragraph
<p> this is a paragraph </p>
</div>
<body>
<html>