HTML is not a programming language. It’s a markup language that is used for creating web pages. Every website in the world uses HTML to build its web page. HTML stands for HyperText Markup Language. Tim Berners-Lee is the creator of it. If you want to work on web-related things, it’s important to know HTML. No worries, HTML is the easiest thing to learn. It’s too much simple and easy.
I am not going to write all of the HTML syntaxes. I am going to give some hints about syntax. I will share the learning resource later.
We can create different types of elements for the webpage using HTML syntax. For example, heading, paragraph, list, input box, image, and so on. To create these elements, we have to use the element-specific tag. Suppose, if we want to use heading in our webpage, we can use the following tag.
<h1>HTML is a Markup Language.</h1>
There are 6 types of heading tags in HTML.
Generally, an HTML tag starts with something like this <tagName> (Opening tag) and ends with </tagName> (Closing tag). The difference in the closing tag is, we have to put a ‘/’ after the less-than sign. But there is another type of HTML tag, which is called the self-ending tag. For example, <tagName/>. To show an image, we have to use a self-ending tag. See the following example.
<img src="Image Source" alt="Text" />
The things we used inside the tag are called attributes.
I hope you got a basic idea about HTML syntax. In the following section, we will see where to learn HTML.
There are so many resources to learn HTML on the internet. You can learn from anywhere, and It’s completely okay. It’s up to you.
I will share some resources for beginners.
- W3Schools (W3Schools is too good for beginners. Their explanation is quite good.)
- FreeCodeCamp (Video lecture)
Remember, learning only HTML is not a good idea at all. Keep learning.