What us tags in html
Asked by Kanchan Rathore about 5 months ago
what is tags in
- paired tags
- un-paired tags
un-paired tags do not require any closing tag, they need to be used only the with opening tag itself, but may contain a
/before the end of the opening tag. Ex:
By definition, HTML tags are like keywords which defines that how web browser will format and display the content.
So they are the basic building blocks for creating content in the HTML page. Here are a few tag names
`<a>` , `<body>` , `<p>`
You need to be familar with the two types of tags:
Paired tags are those tags that have both opening and closing tags.
Tags are not to be confused with Elements, a tag forms an HTML element. A tag is the basic lexical unit in the HTML syntax.
A HTML element, may contain attrbitesand content between the opening and closing tags.
<a href="https://google.com">Go to Google</a> <p>This is a paragraph</p>
show more answers