Blank html and html5 documents

No comments
Sometimes we don't have our favourite html editor to create simple html pages quickly and as our behaviour we don't remember all the required things. So here, i am going to share with you blank HTML and HTML5 pages.
If you would like to create a simple web page, then copy the below code and paste it into your text editor and now you can start typing your contents.

Blank HTML Document:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Html document</title>
</head>
<body>
<p>This is blank html page.</p>
</body>
</html>

Blank HTML5 Document:


<!doctype html>

<html>

  <head>
    <title>Blank HTML5 document</title>
    <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>

  <body>
   <p>This is blank html5 page.</p>
  </body>

</html>

No comments :

Post a Comment