Invalid code snippets in XHTML1.0

30 views Asked by At

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"> 
1

There are 1 answers

8
Quentin On BEST ANSWER

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.