Skip to main content

When to Use the HTML5 'section' Element

The new HTML5 section element can be somewhat confusing. If you've been building ​HTML documents before HTML5, chances are you are already using the element to create structural divisions within your pages and then style the pages with them. So it might seem like a natural thing to simply replace your existing DIV elements with section elements. But this is technically incorrect.

http://ftp.guildwork.com/forum/threads/573a2387002aa8594baaf453-daily-vocabulary-words-with-meaning-and-sentence-pdf-fr-05-16-2016?page=1#573a2387002aa8594baaf452

http://ftp.guildwork.com/forum/threads/5791fa42002aa856b8cb2b50-cisco-ccda-200-310-desgn?page=1#5ea699f7881c591ae7528a4b

http://ftp.guildwork.com/forum/threads/57423bc4002aa8494501a788-the-best-spinner-crack-rar?page=1#57423bc4002aa8494501a787

http://ftp.guildwork.com/forum/threads/57467f5f002aa8494502796f-cs-db-guestbook?page=1#57467f5f002aa8494502796e

http://ftp.guildwork.com/forum/threads/57c84493002aa86b752a31f3-word-to-pdf-converter-free-download-softonic-games

http://ftp.guildwork.com/forum/threads/5724d0da002aa8457d9fe57f-hurme-geometric-sans-font?page=1#5724d0da002aa8457d9fe57e

http://raddreamers.guildwork.com/forum/threads/5e85e448881c5937e3a24b47-water-damage-restoration-port-st-lucie

https://raddreamers.guildwork.com/forum/threads/5f0418e5ec0d5456a59b35d6-chic-dan-tidak-berantakan-interior-design-rumah-untuk-rumah-impian-anda?page=1#5f0418e5ec0d5456a59b35d5

http://mlfa.guildwork.com/forum/threads/57e20fc3002aa8167c9c87da-free-download-driver-sharp-ar-5320-windows-8

http://daisitaco.guildwork.com/forum/threads/5ab91015002aa82b58787035-mindmaple-pro-v1-3-serial-number


The 'section' Element Is a Semantic Element

The SECTION element is a semantic element; it provides meaning to both user agents and humans about what the enclosed content is — specifically, a section of the document.


http://121hydrotherapy.co.uk/Bulletin/showthread.php?tid=460

http://jirpg.net/showthread.php?tid=2742

http://habboretrofan.free.fr/forum/showthread.php?tid=742

https://forum.xxxcall.co.il/showthread.php?tid=3154

https://hiztegia.labayru.eus/forum/showthread.php?tid=1816

http://mira.guildwork.com/forum/threads/57d8e7a0002aa867d10ae5c6-download-pes-2015-crack-1-0-1

http://mira.guildwork.com/forum/threads/57dff580002aa8168b287c27-gigabyte-b85m-d3h-drivers-download

http://ftp.guildwork.com/forum/threads/591d8c97002aa80ba540635e-cracked-open-a-bear-pools

http://ftp.guildwork.com/forum/threads/5917ca8e002aa80b84fe177f-cant-be-touched-music-download

This may seem like a very general description, and that's because it is. There are other HTML5 elements that provide more semantic distinctions to your content that you should use first before you use the section element:


Article

Aside

Nav

When to Use the 'section' Element

Use the article element when the content is an independent part of the site that can stand alone and be syndicated like an article or blog post. Use the aside element when the content is tangentially related to either the content of the page or the site itself, such as sidebars, annotations, footnotes, or associated site information. Use the nav element for content that supports site navigation.

http://kappacrew.guildwork.com/forum/threads/5941753f002aa818c8532dd1-aim-headshot-hack-cs-1-6-cfg

https://prisaoinvisivel.com.br/forum/viewtopic.php?t=33042

https://prisaoinvisivel.com.br/forum/viewtopic.php?t=70727

https://prisaoinvisivel.com.br/forum/viewtopic.php?t=71027

https://prisaoinvisivel.com.br/forum/viewtopic.php?t=2387

https://prisaoinvisivel.com.br/forum/viewtopic.php?t=28222

https://forum.r-zone.ro/viewtopic.php?t=346

https://forum.r-zone.ro/viewtopic.php?t=383

https://forum.r-zone.ro/viewtopic.php?t=337

https://forum.r-zone.ro/viewtopic.php?t=712

https://forum.r-zone.ro/viewtopic.php?t=808


The section element is a generic semantic element. Use it when none of the other semantic container elements are appropriate. It combines portions of your document into discrete units that you can describe as related in some way. If you can't describe the elements in the section in one or two sentences, then you probably shouldn't use the element.


http://dibsls.guildwork.com/forum/threads/5935b37e002aa818c7d2e7d3-shortcut-romeo-full-movie-download-720p-videosinstmank

http://radicaldreamers.guildwork.com/forum/threads/5a575834002aa80eb4c5d01e-free-download-facebook-password-hacker-v54

http://afterhours.guildwork.com/forum/threads/576ffc87002aa874b8d7fb3f-sportek-kwb-350-user-manual

https://www.netmaid.com.sg/forums/showthread.php?tid=2898&pid=7327

https://mysourcetelevision.com/forum/showthread.php?tid=125609

https://gceconstructora.com/showthread.php?tid=3541

https://pokerbud.pt/showthread.php?tid=333

http://forumdewa88.com/showthread.php?tid=21192

http://forum.avazak.ir/showthread.php?tid=24623

http://forum.naronanews.com/showthread.php?tid=6803

Instead, you should use the DIV element. The DIV element in HTML5 is a non-semantic container element. If the content you are trying to combine doesn't have a semantic meaning, but you still need to combine it for styling, then the DIV element is the appropriate element to use.

http://www.chiswickchat.co.uk/forum/viewtopic.php?f=2&t=196890

http://www.chiswickchat.co.uk/forum/viewtopic.php?f=2&t=94935

http://www.chiswickchat.co.uk/forum/viewtopic.php?f=2&t=57547

http://www.chiswickchat.co.uk/forum/viewtopic.php?f=2&t=95185

http://www.chiswickchat.co.uk/forum/viewtopic.php?f=3&t=202513

https://v4-bootstrap.phpfox.com/forum/thread/10684/kailo-reviews-%E2%80%93-does-it-really-work/

https://osaka.es/foro/viewtopic.php?t=14230

https://gitx.lighthouseapp.com/projects/17830/tickets/8323-online-grocery-delivery-business-with-instacart-clone-script

How the 'section' Element Works

A section of your document can appear as the outer container for articles and aside elements. It can also contain content that isn't part of an article or aside. A section element can also be found inside an article, nav, or aside. You can even nest sections to indicate that one group of content is a section of another group of content that is a section of an article or the page as a whole.


The section element creates items inside an outline of the document. And as such, you should always have a header element (H1 through H6) as a part of the section. If you can't come up with a title for the section, the DIV element is probably more appropriate.


When Not to Use the 'section' Element

There is one purpose for which you should not use the section element: for style only.

http://forum.kmj.nvh.pl/viewtopic.php?t=2494

http://forum.kmj.nvh.pl/viewtopic.php?t=3189

http://forum.kmj.nvh.pl/viewtopic.php?f=1&t=3028

http://forum.kmj.nvh.pl/viewtopic.php?f=1&t=346

http://forum.kmj.nvh.pl/viewtopic.php?f=1&t=744

http://chimatamusic.net/db/viewtopic.php?p=1639144

http://chimatamusic.net/db/viewtopic.php?p=1598333

http://www.my-home-mallorca.com/forum/viewtopic.php?f=8&t=111666

http://www.my-home-mallorca.com/forum/viewtopic.php?f=8&t=111634

http://www.my-home-mallorca.com/forum/viewtopic.php?f=8&t=107299

http://www.my-home-mallorca.com/forum/viewtopic.php?f=15&t=87721


In other words, if the only reason you're putting an element in that place is to attach CSS style properties, you should not use a section element. Find a semantic element or use the DIV element instead.


Ultimately It May Not Matter

A difficulty in writing semantic HTML is that what is semantic to the browser may be utter nonsense to you. If you feel that you can justify using the section element in your documents, then you should use it. Most user agents don't care and will display the page as you might expect whether you style a DIV or a section.

http://www.my-home-mallorca.com/forum/viewtopic.php?f=8&t=75239

https://www.mitsubishi-forum.cz/colt/druh-zadni-napravy-colt-1996-t69.html

https://www.gsrangers.com/forums/viewtopic.php?f=76&t=49833

https://www.gsrangers.com/forums/viewtopic.php?f=76&t=44934

https://www.gsrangers.com/forums/viewtopic.php?f=76&t=42880

https://en.aoebbs.cn/theme-20290.html

https://en.aoebbs.cn/theme-27053.html

https://en.aoebbs.cn/theme-27063.html

https://en.aoebbs.cn/theme-22623.html

https://en.aoebbs.cn/theme-27001.html

https://en.aoebbs.cn/theme-6983.html

For designers who like to be semantically correct, using the section element in a semantically valid way is important. For designers who just want their pages to work, that isn't as important. Writing semantically valid HTML is good practice and keeps the pages more future-proofed. But in the end, it's up to you.

Comments

Popular posts from this blog

How to Get Classic Solitaire for Windows 10

Ever since Windows 3.0 was released in 1990, a free version of solitaire has been included with the Windows operating system. In fact, it was once the application for Windows. https://www.burnleychat.co.uk/forum/showthread.php?tid=7&pid=8 http://omniwebit.com/KevinForum/Upload/showthread.php?tid=209605 https://imaginoproject.com/bb/showthread.php?tid=3523 http://www.scifidig.com/forums/showthread.php?tid=221961&pid=296689#pid296689 http://freebitcoin.co/forum/showthread.php?tid=841295 http://nhulit2.nhu.edu.tw/community/viewtopic.php?CID=4&Topic_ID=75 https://thehiphophub.ning.com/forum/topics/http-t-rexmuscleadvice-com-stack-testo-boost-360-16 Solitaire is actually a name referring to any card game played by a single person with a single deck of cards. Classic solitaire is a specific version, also known as Klondike.What Is Classic Solitaire? In classic solitaire, 28 cards are dealt face-down into seven columns with one card in the first column, two in th...

How to Activate Disney+ on Your Device: A Simple Guide

 Disney+ offers an extensive collection of content, including beloved movies and shows from Disney, Pixar, Marvel, Star Wars, and National Geographic. Whether you're looking to catch up on classics or explore new releases, activating your Disney+ account on your device is the first step. Here’s a step-by-step guide to help you get started. How Do I Sign Up for Disney+? Before activating Disney+ on any device, you need to have an active subscription. If you’re new to Disney+, head over to Disney+ and sign up. You’ll need to provide your email address and select a subscription plan that fits your preferences. Once you’ve created your account, you’re ready to activate Disney+ on your devices. https://destinycard-com-activate.gorgias.help/en-US https://myuhccomcommunityplan.gorgias.help/en-US https://healthfirst-provider-portal.gorgias.help/en-US https://healthfirst-provider-portal.gorgias.help/en-US https://irs-8700-stimulus-check.gorgias.help/en-US https://cigna-provider-portal.gorgi...

The Intersection of Destiny, Technology, and Security

In today’s digital world, entertainment, productivity, and security are deeply intertwined. Services like Roku, Hulu, and Amazon offer an endless variety of streaming options, making it easier to access movies, TV shows, and exclusive content from anywhere. Whether you're watching a show on Hulu, using Roku to stream your favorite movies, or exploring the immersive universe of Destiny, these platforms have revolutionized how we consume entertainment. https://portalsolutions.groovehq.com/help https://online-help-line.groovehq.com/help https://phonelinkhelp.groovehq.com/help https://avgsafe.groovehq.com/help/how-do-i-activate-avg-antivirus-using-a-product-license-key https://huluchannels.groovehq.com/help/how-to-activate-hulu-on-your-device https://huluchannels.groovehq.com/help/how-do-i-activate-hulu-on-my-device https://hbomaxconnect.groovehq.com/help/how-to-sign-in-and-activate-hbo-max https://hbomaxconnect.groovehq.com/help/how-to-sign-in-to-hbo-max https://portalsolutions.groove...