Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. use of SECTION in Html 5

use of SECTION in Html 5

Scheduled Pinned Locked Moved Web Development
htmldesignquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Swinkaran
    wrote on last edited by
    #1

    I found that many html users utilize the SECTION in a wrong way. One of my co-developer(in fact he is an HTML UI designer) uses SECTION as instead of DIV. I noticed some use this to wrap the content. I am very interested to know, for what purpose are you guys using this SECTION? Thanks

    A E 2 Replies Last reply
    0
    • S Swinkaran

      I found that many html users utilize the SECTION in a wrong way. One of my co-developer(in fact he is an HTML UI designer) uses SECTION as instead of DIV. I noticed some use this to wrap the content. I am very interested to know, for what purpose are you guys using this SECTION? Thanks

      A Offline
      A Offline
      Ankur m
      wrote on last edited by
      #2

      Quoting from w3schools.com[^]

      The

      tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.

      This link also explains it very well - http://www.w3.org/wiki/HTML/Elements/section[^] Hope this helps!

      ..Go Green..

      J 1 Reply Last reply
      0
      • A Ankur m

        Quoting from w3schools.com[^]

        The

        tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.

        This link also explains it very well - http://www.w3.org/wiki/HTML/Elements/section[^] Hope this helps!

        ..Go Green..

        J Offline
        J Offline
        JohanTerink
        wrote on last edited by
        #3

        The section element is one of the new HTML5 elements, like header, footer, and other semantics. As far as I know, they work quite the same as a div, only the div is a more generic way of dividing content. The section is used for a specific group of content.
        If your co-developer is using section everywhere, he is using it wrong and he has to use the div element. It is possible to use more section-elements.
        With the use of section, the developer has to call it only once in the CSS-file with 'section{}'. Kinda like a class attribute, but used for specific areas on the web page.

        1 Reply Last reply
        0
        • S Swinkaran

          I found that many html users utilize the SECTION in a wrong way. One of my co-developer(in fact he is an HTML UI designer) uses SECTION as instead of DIV. I noticed some use this to wrap the content. I am very interested to know, for what purpose are you guys using this SECTION? Thanks

          E Offline
          E Offline
          erikroyall
          wrote on last edited by
          #4

          I avoid usage of semantic elements that were introduced in HTML5(like section) (except article, aside) because I mostly work with web apps that are compatible with older browsers (IE8, Atommic 1.0 etc.)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups