Hello, welcome back. In my last blog, I told you the basics of HTML. Now, I am going to go into a little depth about each tag in HTML.
HTML tag
HTML tag is the first tag to be written. It opens the document and is the most essential. It is a container tag that ends as the last tag to be closed.
Head tag
The head tag is the second container tag. It specifies the heading of the document. It can be left out but it is still useful.
Heading size
To specify the size of the heading, we use the <h1>, <h2>, <h3>, <h4>, <h5> and <h6> tags. <h1> is biggest and<h6> is the smallest. It is a container tag.
Title tag
The title tag is another tag that is used inside the head tag. It specifies the text to be written on the title bar of the web browser. It is a container tag. Again, it can be left out.
Body tag
The body tag tells where the real content of the webpage starts. It is the last main tag. It is a container tag. The main tag is <body>, but there are many things that can also be put in this tag. Two are mentioned here.
Background colour
The background colour depicts the colour of the page. The syntax is bgcolor="whatever colour". Keep in mind that the American spellings of colour will come, only "color" works.
Font align
You can align font on the webpage. You can align as left, centre and right. The syntax is align="whatever alignment". If you choose centre, write "center", not centre, because it wouldn't work.
After you are done with all the coding, you must close all these tags.
After you are done with all the coding, you must close all these tags.
Comments
Post a Comment