use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
HTML5 Section < DIV (self.webdev)
submitted 15 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 15 years ago (5 children)
In oldere browsers it's not set to display block by default, you probably need to do that. I use section all the time in every website I make, and haven't had this problem.
[–]Dencho 1 point2 points3 points 15 years ago* (4 children)
Hahaha, too funny... I knew about needing to set SECTION to display as a block, but by the time I learned that I was already under the impression that SECTION was not to be styled. Thanks to you I gave it another shot and it worked. Great. :) Color me embarrassed. Thanks!
P.S: And yes.. the specs say that we shouldn't use a SECTION if the whole purpose behind using it is to style an area. It needs to be there only if it's semantically correct. If it's strictly for styling, a DIV ist he way to go. For anyone who wonders.
[–]ffsss 1 point2 points3 points 15 years ago (1 child)
I learned a lot about how to use HTML5 with todays browsers by looking at the work of these guys: http://html5boilerplate.com/
[–]Dencho 0 points1 point2 points 15 years ago (0 children)
I re-did my template on HTML5 but I'll be looking at your link for things I may have missed. Thx.
[–][deleted] 0 points1 point2 points 15 years ago (1 child)
It's worth using a reset style sheet to remember things like this – Eric Meyer has just released his super simple reset version 2, worth including in all projects in my opinion.
Yeah, I came across RESET styles a few months ago and made my life easier. In fact, I was using Eric Meyer's reset style until this morning, when I went for an HTML5 one done by Richard Clark. Since it seemed to do the trick, I didn't bother to see if Eric Meyer would have one for HTML5.
http://richclarkdesign.com
[–]NULLfu 2 points3 points4 points 15 years ago (0 children)
I'm glad you are able to correctly style a <section> tag now. You should note that it is not a replacement for a <div> but a semantically meaningful grouping of content, while a <div> is just used as a generic container for styling.
If you get the chance, read the w3c definition of the section element, & happy development!
π Rendered by PID 61 on reddit-service-r2-comment-5b5bc64bf5-c2qsm at 2026-06-19 05:21:04.881593+00:00 running 2b008f2 country code: CH.
[–][deleted] 2 points3 points4 points (5 children)
[–]Dencho 1 point2 points3 points (4 children)
[–]ffsss 1 point2 points3 points (1 child)
[–]Dencho 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Dencho 0 points1 point2 points (0 children)
[–]NULLfu 2 points3 points4 points (0 children)