Comments on: Avoiding common HTML5 mistakes https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: Steve Faulkner https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-1871694 Mon, 20 Apr 2015 20:11:09 +0000 http://html5doctor.com/?p=3494#comment-1871694 @Carlos, you can use it, you can use any obsolete element, it has no semantics though.

]]>
By: Carlos https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-1871606 Mon, 20 Apr 2015 19:09:50 +0000 http://html5doctor.com/?p=3494#comment-1871606 Ok we’re by the end of the 1st quarter of 2015. According to a warning above, the hgroup tag was removed from the spec (W3C spec i suppose), but WHATWG’s spec still has it. So, is it safe to use it? i used it before, stopped using as per W3C’s spec… but now i’m not sure of what to do.

]]>
By: Alex https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-272990 Sat, 23 Aug 2014 09:56:24 +0000 http://html5doctor.com/?p=3494#comment-272990 Today it make sense to use:

and style the ‘div id=header’ instead of the ‘header’ tag to avoid compatibility problem?

]]>
By: Edd https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-235336 Thu, 14 Aug 2014 17:30:18 +0000 http://html5doctor.com/?p=3494#comment-235336 This is one way to educate people of the improper use of HTML 5.

a fair amount of what is said in this article is actually wrong.

And is also contradictory to another HTML5 doctor post

https://stevefaulkner.github.io/html5doctored/the-article-element/

]]>
By: Jeffrey Barke https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-49393 Sun, 18 May 2014 16:43:28 +0000 http://html5doctor.com/?p=3494#comment-49393 @Reinaldo: It is not wrong for you to add classes to sections in order to style them; what @Dr. Clark is saying is don’t use the section tag to create generic wrapper elements to hang style hooks from. That has traditionally been the role of div (block-level) or span (inline), and it remains their role in HTML5.

As @Dr. Clark says, “One of the most common problems I see in people’s markup is the arbitrary replacement of <divs>” (emphasis added).

]]>
By: Reinaldo César https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-49370 Fri, 16 May 2014 16:50:12 +0000 http://html5doctor.com/?p=3494#comment-49370 Okay, it’s wrong for me to add my classes in sections in order to style each section and their contents?

]]>
By: Ray https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-45496 Tue, 28 Jan 2014 18:36:28 +0000 http://html5doctor.com/?p=3494#comment-45496 I think you might be missing a key point at the end of your section called “Your logo is not a figure” when you finally sum up by saying, “All you need is this:”…

The whole point (I thought) was to show that you can usually best use without wrapping it in a element … but in the final example, you neglect to use the attribute at all!

]]>
By: Nurul Imam https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-38648 Sun, 20 Oct 2013 17:15:50 +0000 http://html5doctor.com/?p=3494#comment-38648 Yes, i’m use <main> not <main role=”main”> because I do not know how to styling attribute selector <main role=”main”>.
Thank you, I will try to change

]]>
By: Andreas Rejbrand https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-38646 Sat, 19 Oct 2013 21:09:04 +0000 http://html5doctor.com/?p=3494#comment-38646 Naurul: You use CSS attribute selectors for that, like


<style>
[role=main] {
color: red;
}
</style>

which will match all HTML elements with a role attribute set to main or


<style>
main[role=main] {
color: red;
}
</style>

which will only match a main element with a role attribute set to main.

But I don’t understand why you want to do that, since role=main is probably only found on the main element, so surely


<style>
main {
color: red;
}
</style>

is enough?

]]>
By: Nurul Imam https://stevefaulkner.github.io/html5doctored/avoiding-common-html5-mistakes/#comment-38645 Sat, 19 Oct 2013 20:39:51 +0000 http://html5doctor.com/?p=3494#comment-38645 Thanks Steve, But how to styling role=”main” ?
Ex. main {} ?

]]>