Results 1 to 7 of 7

Thread: What is difference between HTML elements and tags ?

  1. #1

  2. #2
    Join Date
    Jun 2013
    Location
    Forum
    Posts
    2,096

    Default

    Tags are labels you use to mark up the beginning and end of an element. 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.
    Cheap VPS Hosting | $1 VPS Hosting
    Windows VPS Hosting | Windows with Remote Desktop Access
    Cheap Dedicated Servers | Linux Dedicated Server Hosting

  3. #3
    Join Date
    Jun 2016
    Location
    India
    Posts
    102

    Default

    Quote Originally Posted by RH-Calvin View Post
    Tags are labels you use to mark up the beginning and end of an element. 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.


    Yes, Thanks, I completely agree with you.

  4. #4

    Default

    “Elements” and “tags” are terms that are widely confused. HTML documents contain tags, but do not contain the elements.

  5. #5

    Default

    HTML tags vs. elements vs. attributes
    HTML elements
    An element in HTML represents some kind of structure or semantics and generally consists of a start tag, content, and an end tag. The following is a paragraph element:
    <p>
    This is the content of the paragraph element.
    </p>
    HTML tags
    Tags are used to mark up the start and end of an HTML element.
    <p></p>
    HTML attributes
    An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element’s start tag. An element’s start tag may contain any number of space separated attribute/value pairs.
    The most popular misuse of the term “tag” is referring to alt attributes as “alt tags”. There is no such thing in HTML. Alt is an attribute, not a tag.

  6. #6
    Join Date
    Apr 2020
    Posts
    322

    Default What is difference between HTML elements and tags ?

    Tags are used to mark up the start of an HTML element and they are usually enclosed in angle brackets. An example of a tag is: <h1>.

  7. #7
    Join Date
    Apr 2020
    Posts
    704

    Default

    A HTML tag is like a container for either content or other HTML tags. A HTML element consists of the start tag + content tag + end tag. Some HTML tags do not have end tags like <img> hence in those cases HTML element will consist of start tag + content.

Similar Threads

  1. What is the difference in caching between HTML5 and the old HTML?
    By sinelogixtech in forum Web Design Solutions
    Replies: 2
    Last Post: 03-13-2023, 11:13 AM
  2. What are meta tags..?
    By ruhikhan in forum Business Tools
    Replies: 16
    Last Post: 05-13-2019, 08:43 AM
  3. Replies: 3
    Last Post: 08-31-2018, 04:23 AM
  4. What is use of ALT-tags in SEO ?
    By ORLOVA in forum Business Tools
    Replies: 9
    Last Post: 04-05-2018, 11:54 AM
  5. What are meta tags..?
    By artijain1900 in forum Business Tools
    Replies: 2
    Last Post: 01-26-2018, 05:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •