Since Genesis 2.0, new child themes use HTML5 markup. The differences in HTML5 themes include semantic elements, Schema.org microdata (helps for SEO) and semantic hook names. Old child themes were not automatically updated, but new ones must declare theme support to use HTML5 markup.
To do so, the only code you need to your child theme functions is the following:
html5 theme support is also recognized by the WordPress core, having been supported since version 3.6 to enable HTML5 markup for comments, the comment form and the search form, and since version 3.9 to enable HTML5 markup for galleries and captioned images. You can include as many or as few of these five elements in your declaration of theme support, and HTML5 will be turned on only for the ones you include.
Genesis only requires the inclusion of
'html5' while the additional arguments are optional. However, due to backward compatibility, supporting
'html5' without specifying additional arguments will automatically support HTML5 markup for comments, the comment form and the search form (but not galleries and captioned images).
Turning on HTML5 theme support changes class names that your stylesheet may be referencing, and hook names that you may be inserting custom content onto. Although HTML5 support is absolutely recommended for new themes, it’s not recommended that you add HTML5 support to an existing XHTML theme unless you’re prepared to carefully update each class name and hook name in your theme.
The theme support
html5 has been included since version 2.0.0.
The theme support
html5 is located in lib/functions/general.php.
- How to Check if the Child Theme is HTML5 or XHTML with Genesis
- How to Make an Accessible Child Theme with Genesis
- How to Check if the Child Theme is Accessible with Genesis
Relevant tutorials from the Genesis community.