You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Donohoe Digital <do...@donohoe.info> on 2011/07/27 16:04:21 UTC

wicket 1.5 xml/doctype/html header: xhtml vs html5

>From https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html, are these still
the desired tags for the start of a wicket html file?

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
xml:lang="en" lang="en">

and

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
<html xmlns="http://www.w3.org/1999/xhtml"  
     
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd"  
      xml:lang="en"  
      lang="en"> 

Of these two options, which is preferred?  Why would I choose the xml start
(versus DOCTYPE)?

Does either choice impact the use of HTML 5?

Thanks,

-Doug



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-xml-doctype-html-header-xhtml-vs-html5-tp3698608p3698608.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: wicket 1.5 xml/doctype/html header: xhtml vs html5

Posted by "robert.mcguinness" <ro...@gmail.com>.
For Wicket *1.5* I've been using:



&lt;!DOCTYPE html&gt;
&lt;html xmlns:wicket="http://wicket.apache.org"&gt;



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-xml-doctype-html-header-xhtml-vs-html5-tp3698608p3706667.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: wicket 1.5 xml/doctype/html header: xhtml vs html5

Posted by Martijn Dashorst <ma...@gmail.com>.
You can use xhtml5 together with wicket if you like strict markup, or
just plain html5. There are some (afaik undefined) rules about closing
<p> and <div> tags, but other than that, (x)html5 should work.

Martijn

On Wed, Jul 27, 2011 at 7:04 AM, Donohoe Digital <do...@donohoe.info> wrote:
> From https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html, are these still
> the desired tags for the start of a wicket html file?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
> xml:lang="en" lang="en">
>
> and
>
> &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
> <html xmlns="http://www.w3.org/1999/xhtml"
>
> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd"
>      xml:lang="en"
>      lang="en">
>
> Of these two options, which is preferred?  Why would I choose the xml start
> (versus DOCTYPE)?
>
> Does either choice impact the use of HTML 5?
>
> Thanks,
>
> -Doug
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-xml-doctype-html-header-xhtml-vs-html5-tp3698608p3698608.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org