In a web developer journey, the first step is always HTML and CSS. In this tutorial, we will cover the basics of HTML. Nobody in this world knows everything about any topic and the same is the case with HTML.
With HTML we need to know the 80% and that will work for most of the web development projects.
It doesn’t matter if you know 50% of a topic or 80% of a topic until you practice it. With this being said, I would like to request all of you to practice HTML for at least 2 hours per day for 7 days.
The more you practice, the more you learn. I request everyone not to try to understand everything written over the page and not to get scared away with the length of the page and just follow along, copy and paste the code in a new HTML file.
#1 – The Doctype
The declaration is not an HTML tag. It is an “information” to the browser about what document type to expect.
In HTML 5, the declaration is simple:
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
All your content goes here, including images, headings, links, media etc
</body>
</html>