Paired Tags Unpaired Tags in Html:
Tags are instructions that are embedded directly into the
text of a HTML document. Each HTML tag describes that the browser should do
something instead of simply displaying the text. In HTML, the tags begin with
(<) and end with (>)
Html tags:
HTML tags can be of two types. They are- Paired Tags
- Unpaired Tags
Paired Tags:
A tag is said to be a paired tag if the text is placed
between a tag and its companion tag. In paired tags, the first tag is referred
to as Opening Tag and the second tag is referred to as Closing
Tag.
Example of Paired Tag:
- <body></body>
- <table></table>
- <h1></h1>
- <div></div>
These are all paired tag, these have starting tag < “tag_name
” > and closing tag </ “tag_name”>.
Difference between paired Tags and unpaired tags:
Paired tags are those tags which have opening and closing tags.
For Example:
- < body></body>
- <div>/<div>
unpaired tags are those tags which don't have a closing tag.
For Example:
For Example:
- < BR >
- <img>
background samples on
ReplyDeleteInput focus background-color
very bad
ReplyDeleteit is useless
ReplyDeleteSo cool thx its so usefull
ReplyDelete