What is the difference between HTML elements and tags?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kanika khurana
    Junior Member
    • Sep 2015
    • 19

    What is the difference between HTML elements and tags?

    What is the difference between HTML elements and tags?
  • Priyanka
    Senior Member
    • Aug 2014
    • 178

    #2
    HTML tag is just opening or closing entity and HTML element is opening tag, closing tag, content.
    Last edited by Priyanka; 10-24-2015, 03:01 PM.

    Comment

    • sonia sharma
      Senior Member
      • Jul 2015
      • 156

      #3
      HTML elements: An element in HTML is the element that represents some kind of structure or semantics and generally consists of a start tag, content, and end tag.

      HTML Tags: Tags are used to mark up the start and end of an HTML element.

      Comment

      • Guest

        #4
        Generally speaking, there are two kinds of tags - opening tags: and closing tags: . The only difference between an opening tag and a closing tag is the forward slash "/". You label content by putting it between an opening tag and a closing tag. HTML is all about elements.

        Comment

        Working...