HTML Tag
By Saket Bhatnagar••Beginner to Intermediate
tag
- 1An HTML tag is a keyword surrounded by angle brackets, < and >.
- 2They are used to mark up the content of a web page, and to specify how the content should be displayed in a web browser.
- 3Every tag in HTML perform specific tasks.
- 4Example :
<html> : it means it is starting of Html tag. </html> : Here , '/' means it is ending of Html tag. - 5The <html> tag represents the root of an HTML document.
We have two types of tags
Container Tag (Paired tag)
- 1 Those tags we have to close , we call them Container tag.
- 2 Example : < html > </html> , <head></head>, <body> </body>, etc.
Non Container tag
- 1Non Container tags are knows as void tag , empty tag and singleton tag because they don't have cloasing tag , so we cannot put content in between tag
- 2Those tags we need not to close , we call them non Container tag
- 3 Example : <br>,<img> , <input> , etc.