Offline
Taneb wrote:
XHTML5 is just HTML5 restricted to XML syntax: all tags must be closed, so no using just a <br> or an <img> without the slash. It also allows you to embed other XMLs in it, but that may be true in HTML5 as well, I'm not sure.
Exactly.
In reality, there is no such thing as XHTML5.(The next version of XHTML was going to be XHTML2, but was dropped by the W3C). HTML5 is very flexible, so you can code as you would like.
But not as forgiving as HTML4
Last edited by SJRCS_011 (2012-06-20 08:17:30)
Offline
rookwood101 wrote:
no such thing and no need anyway.
Offline
rookwood101 wrote:
and no need anyway.
HTML5 has REALLY sloppy syntax (i.e. <br> doesn't need to close, but <div> does).
However, in XHTML5, EVERYTHING needs to close, it is case-sensitive, and every attribute must have a value (i.e. [s]<input type="text" disabled />[/s], use <input type="text" disabled="disabled" />).
Offline
jvvg wrote:
rookwood101 wrote:
and no need anyway.
HTML5 has REALLY sloppy syntax (i.e. <br> doesn't need to close, but <div> does).
However, in XHTML5, EVERYTHING needs to close, it is case-sensitive, and every attribute must have a value (i.e. [s]<input type="text" disabled />[/s], use <input type="text" disabled="disabled" />).
There's not a need because you can close those yourself (and I do) in HTML5
Offline
veggieman001 wrote:
jvvg wrote:
rookwood101 wrote:
and no need anyway.
HTML5 has REALLY sloppy syntax (i.e. <br> doesn't need to close, but <div> does).
However, in XHTML5, EVERYTHING needs to close, it is case-sensitive, and every attribute must have a value (i.e. [s]<input type="text" disabled />[/s], use <input type="text" disabled="disabled" />).There's not a need because you can close those yourself (and I do) in HTML5
that really doesnt help nor answer the question...
Offline
veggieman001 wrote:
jvvg wrote:
rookwood101 wrote:
and no need anyway.
HTML5 has REALLY sloppy syntax (i.e. <br> doesn't need to close, but <div> does).
However, in XHTML5, EVERYTHING needs to close, it is case-sensitive, and every attribute must have a value (i.e. [s]<input type="text" disabled />[/s], use <input type="text" disabled="disabled" />).There's not a need because you can close those yourself (and I do) in HTML5
Yeah, but if I don't, then it doesn't care.
I still use XHTML 1 for that reason, because I need well-formed syntax.
Any HTML5 validator would accept <br> as well as <br/>, but an XHTML5 validator would only accept <br/>.
Offline
jvvg wrote:
veggieman001 wrote:
jvvg wrote:
HTML5 has REALLY sloppy syntax (i.e. <br> doesn't need to close, but <div> does).
However, in XHTML5, EVERYTHING needs to close, it is case-sensitive, and every attribute must have a value (i.e. [s]<input type="text" disabled />[/s], use <input type="text" disabled="disabled" />).There's not a need because you can close those yourself (and I do) in HTML5
Yeah, but if I don't, then it doesn't care.
I still use XHTML 1 for that reason, because I need well-formed syntax.
Any HTML5 validator would accept <br> as well as <br/>, but an XHTML5 validator would only accept <br/>.
So XTML5 would require <canvas/>
Offline
bobbybee wrote:
jvvg wrote:
veggieman001 wrote:
There's not a need because you can close those yourself (and I do) in HTML5Yeah, but if I don't, then it doesn't care.
I still use XHTML 1 for that reason, because I need well-formed syntax.
Any HTML5 validator would accept <br> as well as <br/>, but an XHTML5 validator would only accept <br/>.So XTML5 would require <canvas/>
I guess. I'm still learning about the new elements in HTML5, and I don't know which ones are self-close.
Offline
Canvases wouldn't. You use them like
<canvas id="example" width="200" height="200"> this text is displayed if your browser does not support html5 canvas. </canvas>
Offline
veggieman001 wrote:
Canvases wouldn't. You use them like
Code:
<canvas id="example" width="200" height="200"> this text is displayed if your browser does not support html5 canvas. </canvas>
Oh. *facehoof*
Offline
bobbybee wrote:
veggieman001 wrote:
Canvases wouldn't. You use them like
Code:
<canvas id="example" width="200" height="200"> this text is displayed if your browser does not support html5 canvas. </canvas>Oh. *facehoof*
Everyone I know in the web design community (all 3 people) except LS97 make fun of me because I still use XHTML 1.0, and I don't know the HTML5 stuff yet.
Offline
veggieman001 wrote:
Yeah, I have like no sense of perfection
![]()
I'm the exact opposite. Everything must be right, and I'm often good at telling when something is not right (which is why I'm good at programming).
Offline
jvvg wrote:
Everyone I know in the web design community (all 3 people) except LS97 make fun of me because I still use XHTML 1.0, and I don't know the HTML5 stuff yet.
That's fine! Good idea being backwards compatible.
Besides, if you really need the html5, you can just open a html5 reference in another browser tab.





Offline
jvvg wrote:
MathWizz wrote:
Badly formatted JavaScript drives me crazy.
![]()
Yeah, I really hate people that don't end their lines with a semicolon.
Oh, trust me, there's worse...
Offline
jvvg wrote:
veggieman001 wrote:
jvvg wrote:
HTML5 has REALLY sloppy syntax (i.e. <br> doesn't need to close, but <div> does).
However, in XHTML5, EVERYTHING needs to close, it is case-sensitive, and every attribute must have a value (i.e. [s]<input type="text" disabled />[/s], use <input type="text" disabled="disabled" />).There's not a need because you can close those yourself (and I do) in HTML5
Yeah, but if I don't, then it doesn't care.
I still use XHTML 1 for that reason, because I need well-formed syntax.
Any HTML5 validator would accept <br> as well as <br/>, but an XHTML5 validator would only accept <br/>.
I always use <br/> anyway, until recently when I started getting a bit lazy, but still I usually use self closing tags.
Offline
veggieman001 wrote:
I use HTML5 but with the XHTML syntax.
Me too. I just rarely use most of the new tags. Actually, i rarely use any of the new tags.
The only time i don't is if i'm being lazy and just testing something. Then i'll completely mess up the document tree.
Offline