Saturday, July 16, 2016

How to create a HTML document?


A HTML file needs to have a doctype and the doctype will be html. It will look like below:

<!DOCTYPE html>

It also needs to have a head tag and inside head tag the file needs to have a title tag.
At last it needs to have a body tag like below:

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>

Put the above code in a file and save the file with .html extension. 

No comments:

Post a Comment