108k views
1 vote
Identify tags and attributes in HTML 5

User Suhdonghwi
by
5.6k points

1 Answer

1 vote

Answer:

Tags can be identified as they are written as <tagname> Something </tagname>

<tagname> this tag is called start tag.

</tagname> this tag is called as end tag.

for ex:<p> This is a paragraph </p>

There are some elements with no end tag.for ex:- <br> tag.

Attributes are used to provide additional information to an HTML element.

Every element can have attributes.

for Ex:- <h1;>MY WEBSITE </h1>

So the background of h1 will become red.

User Daxsorbito
by
6.6k points