What us tags in html

Asked by Kanchan Rathore about 5 months ago


what is tags in

1 Answer


    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:

    1. paired tags

    Paired tags are those tags that have both opening and closing tags. Ex: <a> </a> <p> </p>

    1. 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: <br> <img />

    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>

    Pranav Mandava


    Your answer