Understanding HTML tags. – DEV Community

April 9, 2023


1. What are tags?
Tags are the basic building blocks of HTML. HTML is a group different kind of tags having their own unique properties. Every tag contains opening and closing tag. Tags are also opened and closed in a specific order. The most recent tag should be closed first than the outer one.
For example:
Image description
There are many number of tags, a few of are:

Example-1;

<h1>My HTML webpage content.</h1>
Enter fullscreen mode

Exit fullscreen mode

OUTPUT:

Image description

Example-2;

<h2>My Blog post</h2>
<img src="https://dev-to-uploads.s3.amazonaws.com/uploads/logos/resized_logo_UQww2soKuUsjaOGNB38o.png" />
Enter fullscreen mode

Exit fullscreen mode

OUTPUT:

Image description



Source link

Comments 0

Leave a Reply

Your email address will not be published. Required fields are marked *