1.

What is the difference between HTML elements and tag ?

Answer»
  • Elements:
<P>A web page has many segments, such as paragraph, image, link or anything through which you can interact is known as elements. Each element has its own purpose -  for example you can click on a link or WRITE on a text box.
  • Tags:

The HTML document is a text document which can be opened  with any text editor in a computer. When we open the document we see that there are many tags used to BUILD the document. These Tags are actually keywords SURROUNDED  by angled brackets and each one of them describes an element.

Most of the tags have opening and closing tags

  • Tags:

Keywords used to format a web-browser are known as tags.

Example: (START Tag) <p>...</p> (End Tag).

  • Elements:

When content is inserted between the Start Tag and End Tag this is known as Element.

Example: (Start Tag) <p>This is element of HTML</p> (End Tag).



Discussion

No Comment Found