Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Apr 2015
    Posts
    134

    Lightbulb What is the difference between HTML elements and tags ?

    HTML elements communicate to the browser how to render text. When surrounded by angular brackets <> they form HTML tags. For the most part, tags come in paris and surround text.

  2. #2
    Registered User 24x7servermanag's Avatar
    Join Date
    Jul 2017
    Location
    India
    Posts
    1,020
    An element in HTML represents some kind of structure or semantics and generally consists of a start tag, content, and an end tag.

    Tags are used to mark up the start and end of an HTML element. A start tag consists of an opening angle bracket (<) followed by the element name, zero or more space separated attribute/value pairs, and a closing angle bracket (>).
    Server Management Company
    India's Leading Managed Service Provider | Skype: techs24x7
    Cpanel Technical Discussions - Lets talk !

  3. #3
    Registered User
    Join Date
    Sep 2017
    Location
    ghaziabad
    Posts
    280
    HTML ELEMENTS-The html element is the individual component of the html document or web page, once this has been parsed into document object model. It is composed of tree of html node.

    TAGS-Tags are use to markup the start and end of the html elements. A start tag consist of opening angle bracket and end tag is used for closing angle bracket. These tags are hidden keywords within a web page that will define how your web browser format must display.

  4. #4
    Junior Member
    Join Date
    Mar 2018
    Posts
    3
    Elements are things on the website that you see all the time, like headers or paragraphs or pictures... (you can simply see it as visible things that appear on a page)
    And Tags look like this a paragraph for example <p>...</p> (normally you can't see those weird things on your pages)

  5. #5
    Registered User
    Join Date
    Jan 2018
    Posts
    546
    An element in HTML represents some kind of structure or semantics and generally consists of a start tag, content, and an end tag.

    Tags are used to mark up the start and end of an HTML element. A start tag consists of an opening angle bracket (<) followed by the element name, zero or more space separated attribute/value pairs, and a closing angle bracket (>).

  6. #6
    Senior Member
    Join Date
    Nov 2015
    Location
    United Kingdom
    Posts
    241
    Generally speaking, there are two kinds of tags - opening tags: <html> and closing tags: </html> . 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.

  7. #7
    Junior Member
    Join Date
    Mar 2018
    Location
    Ahmedabad
    Posts
    4
    HTML tag is just opening or closing entity. For example:

    <body> and </body> are called HTML tags

    HTML element encompasses opening tag, closing tag, content (optional for content-less tags) Eg:

    <body>This is the content</body> : This complete thing is called a HTML element

  8. #8
    Registered User
    Join Date
    Sep 2017
    Posts
    1,192
    HTML element is the collection of start tag, its attributes, an end tag and everything in between.
    HTML tag either opening or closing is used to mark the start or end of an element.

  9. #9
    Registered User
    Join Date
    Apr 2019
    Posts
    83
    Hello,

    <html>,<body> are the tags and case insensitive.

    And <br/>,<hr/> are called elements inside the opening and closing tags.

    Thanks!

  10. #10
    Registered User
    Join Date
    Mar 2019
    Location
    Ahmedabad
    Posts
    180
    A tag is a part of an HTML element, or rather, an element is the sum of a start-tag, optional content and optional end-tag.

    HTML Tag

    HTML tag refers to a tag name surrounded by opening (“<”) and closing (“>) brackets.

    For example: <body> tag.

    In the above example, a body tag is surrounded by opening (“<”) and closing (“>) brackets and a word “body” is mentioned inside it, which is actually a name of a tag i.e. “body” tag. These brackets are used for denoting that it is an HTML tag. You will find a number of such tags which are used in HTML and they are referred by different names like: image tag, paragraph tag, etc.

    HTML consists of tags which are of two types: opening tags and closing tags.

    HTML Element

    HTML element is nothing but an HTML tag along with the content inside it.

    For Example:-

    Element is referred to, the content present inside an opening and closing tag and that complete tag with its content are referred to as HTML Element.

Posting Permissions

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

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.