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.

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.

https://www.mitsubishi-forum.cz/koupe-ojeteho-vozu/koupe-mitsubishi-oulander-t5251.html

https://www.mitsubishi-forum.cz/koupe-ojeteho-vozu/liftback-versus-hatchback-t255911.html

https://www.mitsubishi-forum.cz/prodam/predam-novy-palubny-pocitaci-pre-mitsubishi-galant-viii-t255901.html

https://www.mitsubishi-forum.cz/l200/koupe-ojeteho-l200-t48.html

https://www.dacia-forum.cz/logan/nevraci-se-spojkovy-pedal-t8434.html

https://www.dacia-forum.cz/koupim/shanim-nove-ci-pouzite-nahradni-dily-na-dacii-1300-t8426.html

https://www.dacia-forum.cz/prodam/n-autosklo-stripek-vymeny-autoskel-zdarma-bonus-az-2tis-t36.html


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:

  1. Article
  2. Aside
  3. Nav

https://www.dacia-forum.cz/logan-van/dacia-logan-van-t10.html

  1. https://www.dacia-forum.cz/sandero/dacia-sandero-t9.html

    https://www.dacia-forum.cz/prodam/xrumer-19-0-xevil-5-0-solve-of-captchas-more-than-8400-types-t8463.html

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://welcome2solutions.com/forum/topics.aspx?ID=32874

http://welcome2solutions.com/forum/topics.aspx?ID=32397

http://welcome2solutions.com/forum/topics.aspx?ID=32413

http://welcome2solutions.com/forum/topics.aspx?ID=32524

https://www.mitsubishi-forum.cz/tz-novinky/recenze-hella-pojistka-t255926.html

https://www.mitsubishi-forum.cz/servis/oprava-vyfuku-t255930.html

https://www.mitsubishi-forum.cz/tz-novinky/revolucni-tlumice-na-auto-ktere-vas-offroad-zdokonali-t5237.html

https://www.mitsubishi-forum.cz/tuning/wrap-folie-co-pouzivate-k-aplikaci-t255924.html


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.


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://mrssodhi.com/discussions/showthread.php?tid=2291

https://elclubbilingue.com/forum/showthread.php?tid=366238

https://modelcarsforum.com/showthread.php?tid=24607

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

http://jirpg.net/showthread.php?tid=1165&pid=10322

http://forum.dawahfrontnigeria.com/showthread.php?tid=210441

http://forum.learninweb.com/showthread.php?tid=1065

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

http://welcome2solutions.com/forum/topics.aspx?ID=32621

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.

https://www.volvo-forum.cz/prodam/prodam-volvo-850-t5-t258.html

https://www.volvo-forum.cz/v40/napinaci-kladka-t256.html

https://www.volvo-forum.cz/koupim/volvo-s60-klimakompresor-t236.html

https://www.volvo-forum.cz/tz-novinky/volvo-cx90-t2562.html

https://www.volvo-forum.cz/v70/vymena-skla-spatneho-zrkadla-t202.html

http://forum.shopheroes.com/viewtopic.php?t=2672

http://forum.shopheroes.com/viewtopic.php?t=7368

http://forum.shopheroes.com/viewtopic.php?t=717

https://www.redheronation.org/forums/showthread.php?tid=5701

https://www.actioncams.com.br/forum/showthread.php?tid=123919

If you don't want the section title to appear on the page, you can always mask it with CSS.


When Not to Use the 'section' Element

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


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.

http://www.netfoos.com/forums/viewtopic.php?f=38&t=890

http://www.netfoos.com/forums/viewtopic.php?f=45&t=5247

https://www.toyota-forum.cz/auris/pojistkova-skrinka-t7752.html

https://www.toyota-forum.cz/prodam/topic-t7770.html

https://www.toyota-forum.cz/tz-novinky/prichazi-podzim-a-s-nim-i-mnoho-povinnosti-t7755.html

https://www.toyota-forum.cz/auto-hifi/subwoofer-do-kufru-t7758.html

https://www.toyota-forum.cz/avensis/problem-s-reproduktormi-avensis-t7724.html

https://www.peugeot-forum.cz/o-tomto-foru/air-jordan-1-t6476.html

https://www.peugeot-forum.cz/o-tomto-foru/nike-tavas-t6475.html

https://www.peugeot-forum.cz/206/database-registered-documents-whatsapp-44-7737754805-high-quality-real-and-fake-passport-drive-t6538.html

https://www.peugeot-forum.cz/o-tomto-foru/nike-air-jordan-1-t6547.html

https://www.peugeot-forum.cz/306/buy-fake-and-real-passport-id-cards-drivers-license-whatsapp-44-7737754805-t6539.html



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.

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

https://www.redheronation.org/forums/showthread.php?tid=5735

https://www.actioncams.com.br/forum/showthread.php?tid=123606

http://mrssodhi.com/discussions/showthread.php?tid=65473

https://www.yousciences.it/forum/showthread.php?tid=802

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

http://forum.e-day.pl/viewtopic.php?f=29&t=502

http://forum.e-day.pl/viewtopic.php?f=29&t=446

http://forum.e-day.pl/viewtopic.php?f=29&t=113

http://forum.e-day.pl/viewtopic.php?f=9&t=451

http://forum.e-day.pl/viewtopic.php?f=76&t=1479

http://forum.e-day.pl/viewtopic.php?f=9&t=501

http://www.netfoos.com/forums/viewtopic.php?f=44&t=5223


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 Use the Free ClamAV Linux Antivirus Software

Linux is considered by many people to be more secure than Windows, but like any computer, it can be vulnerable to Though the risk for contracting viruses on Linux may be somewhat low, it is still present, and many people don't use antivirus software on their Linux systems. As cybersecurity and attacks increase in prevalence, it is worth adding the extra peace of mind that antivirus software offers. That doesn't mean you have to spend a lot, however. This is where ClamAV comes in. http://www.voiphelp24.com/viewtopic.php?t=246366 https://forum.rufox.ru/?Act=viewtopic&tid=2622&p=73 https://www.imaginedragonsmusic.com/videos/imagine-dragons-thunder-live-ellen-degeneres-show2017 A Free Antivirus Solution ClamAV is an open-source antivirus software toolkit that is used to detect malicious software and viruses on a variety of operating systems, including Linux.  https://blackthen.com/dr-william-bill-key-slave-renowned-veterinarian/  It is often used on mail servers ...

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...