xhtmlxhtml-1.0-strict

Invalid code snippets in XHTML1.0


Can anyone advise why the following is not valid strict xhtml 1.0?

<p align="right"> 

<table align="right"> 

<form name="login" action="/scripts/login.cgi" method="post"> 

Solution

  • align attribute is presentational and replaced by CSS.

    Paragraphs may not contain tables.

    Forms may not be child nodes of tables.

    name attribute of forms is removed in favour of id.