What are different types of elements in HTML
In this atricle we have discuss about the HTML elements.
Elements are the fundamentals of the HTML document. An HTML element starts with start tag/opening tag and ends with end tag/closing tag. HTML tags are the basic element of it. There are two types of Element in HTML.
- Container element.
- Empty element.
Container elements are those elements which contains the end tag at the end.
Empty elements are those elements which does not contain any end tag.
There are four basic tags or element in HTML. They are as follows:
||This indicates that the html documents is starting. It is the top most element of the html document which come first. It is the example of container tag.
||Between these tag content of the web page come. It is also the example of the container tag.
||This is for giving the title of the web page. This is optional tag. This comes under head tag.
||This is for giving the heading of the Web page.
There are some additional tags in it.
||This is a paragraph tag. It indicates the paragraph of the contents of the web page.
||This the anchor tag and it is used to make the hyperlink that is used to navigate from one page to another.
||This is used to change the color, size of the content of the web page.
||This is used to provide the italic style on the content. Any content of the web page come under this becomes italic.
||It indicates that the any content come under this will be underlined.
||It indicates the the any content come under this will be bold.
||It is used for giving the image in html document.
||It works like enter key available on the keyboard. It brings the cursor to the next line.
|| This stands for horizontal tag.It is used to draw the horizontal line in the html document.
||This is like the paragraph tag. This is used to make paragraph but in center alignment.
HTML is not case sensitive language. It means if we will use <P> in place of <p> then there will not be difference. Means in it we can use upper case tags as well as lower case tags.
Ask Your Question
Got a programming related question? You may want to post your question here