Basic HTML tags
The basic structure of HTML is;
<!DOCTYPE html>
<html>
<head></head>
<body></body>
</html>
All the contents that is need to be displayed is written as html statements inside the body tag. For example we can include heading,paragraphs and so on.In html,there are predefined keywords to input content to the webpage. Now i will explain some of the basic html tags which can used under <body>
<h1>…..<h6>
Get Jayani Chamodhi’s stories in your inbox
Join Medium for free to get updates from this writer.
“h” tag is used for headings. The size of the heading changes from <h1> to <h6>.H1 is considered as the the largest font heading size and h6 is the smallest font heading size.This should have an ending tag as </hn>.
<p>
“p” tag is used for paragraphs. First we need to remember that,the extra white spaces which is written inside <p> will get ignored.This also should have a closing tag as </p>.
<hr>
This is simply used to insert a horizontal line,This doesn’t have a closing tag.
<img>
This tag is used to input images. In this we should use the “src” attribute inside <img> to specify the location of the image. There are various attributes which can be used with <img> as,width ,alt,src and so on.
<video>
This tag is used to input a video to the webpage. After opening video tag we should open another tag as “<source>” and we should specify the location and other required details as attributes inside this tag.
Eg:<video width=”620" height=”540" controls>
<source src=”video.mp4" type=”video/mp4">
</video>






