DEV Community

Mohana Kumar
Mohana Kumar

Posted on

what is HTML tags and usage and basic HTML tags

WHAT IS HTML TAGS?

An HTML tag tells the browser how to display or handle content.

Basic tag structure

<tagname> opening tag
</tagname> closing tag

USAGE OF TAGS?

HTML tags are used to create, structure, and format content on a web page. Each tag has a specific purpose.

Basic html tags

  1. <HTML>
    Usage: Defines the beginning and end of an HTML document.

  2. <head>
    Usage: Contains meta information like title, styles, and scripts.

  3. <title>
    Usage: Sets the title of the webpage.

  4. <body>
    Usage: Holds all visible content of the webpage.

  5. <h1>
    Usage: Used for headings.

Top comments (0)