HTML tags

 




We are starting our class of web development, first we starts with HTML and there are tag that you need to learn to go step ahead .

1. What are container tags?

Ans: The tags '< >' which are need are need to be closed '< / > ' are called container tag.

Here are some container tags listed below 

                        Tags                                                                              Works

          <h1 to h6 >  </h1 to h6>               This tag is for heading h1 for big heading and h6 is for small.

                        <p> </p>                                                 This tag is use for writing paragraph.

                     <div> </div>                                              This is use for division in a webpage. 


2. What are empty or non-container tags?

Ans: The tags '< >' which are not needed to be closed are called non-container tags.

Here are some tags listed below:

                       Tags                                                                                          Works

                        <br>                                                                This tag is use for break or enter

                       <img>                                                              This tag is use for image inserting.

Now you the basics and important tags which will help you to create your first web page.


Before you start you need to know that you will have to write some code to use this tags and always save the file name as .html not as .txt.





Lets start, first we will use the above tags to understand the use.

<h1 to h6> tag



    And the result will be:



Here you can see h1 is the biggest heading and h6 is the smallest. 

0 comments: