Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
nicholas maddren
12,793 PointsConverting HTML5 into XHTML
I want to convert my html5 site into xhtml however if I validate my current site as a xhtml I get 130 errors found compared to about 12 when I validate it as HTML5 any idea why so many errors occur?
Here is the validation: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.dealerbyte.co.uk%2F&charset=%28detect+automatically%29&doctype=XHTML+1.1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices
1 Answer
Nicholas Klunder
8,144 PointsXHMTL syntax is more strict than HTML5. Most of your errors seem to be simple fixes, like including the "/>" at the end of self-closing tags.
Just out of curiosity, why are you wanting to convert from HTML5 to XHTML?
Nicholas Olsen
Front End Web Development Techdegree Student 19,342 PointsNicholas Olsen
Front End Web Development Techdegree Student 19,342 PointsI'm also curious
nicholas maddren
12,793 Pointsnicholas maddren
12,793 PointsBecause a work placement has told me that I will be working in XHTML so I want to get the hang of it so I thought I'd validate my own work to see what changes I will need to make when working in XHTML. Btw random fact we are all called Nicholas