Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XHTML 1.0 Transitional vs XHTML 1.0 Strict?

Tags:

xhtml

In terms of SEO, for client point of view, should I use XHTML 1.0 Transitional or XHTML 1.0 Strict?

Why some people still use Transitional?

Will we lose something if We use Transitional over Strict?

like image 814
Jitendra Vyas Avatar asked Dec 11 '09 05:12

Jitendra Vyas


People also ask

What is XHTML 1.0 strict?

XHTML 1.0 Strict is the XML equivalent to strict HTML 4.01, and includes elements and attributes that have not been marked deprecated in the HTML 4.01 specification. As of November 2015, XHTML 1.0 Strict is the document type used for the homepage of the website of the World Wide Web Consortium.

Is XHTML strict?

There is no strict rules on structure when using HTML, but you should follow strict structure rules in XHTML. If you are using HTML, then you can use upper case and lower case for tags and attributes However, in XHTML, tags and attributes are strictly lower case.

What are different types of XHTML?

You can use any one of three document types for your XHTML pages: XHTML 1.0 Strict. XHTML 1.0 Transitional. XHTML 1.0 Frameset.

Why is XHTML strict?

XHTML was developed to make HTML more extensible and flexible to work with other data formats (such as XML). In addition, browsers ignore errors in HTML pages, and try to display the website even if it has some errors in the markup. So XHTML comes with a much stricter error handling.


2 Answers

XHTML Strict forces you to use semantic markup, where as Transitional is a bit more flexible and still allows you to use legacy presentational elements like <font> and <center>.

People still use Transitional to maintain support older markup, but it doesn't make any difference to SEO. Strict is considered better for encouraging more accessible XHTML and better separation of content and presentation.

like image 61
Chris Fulstow Avatar answered Oct 04 '22 02:10

Chris Fulstow


I don't think there is any impact of using one or the other : what really matters is content, not (X)HTML (Strict/Transitional).

like image 31
Pascal MARTIN Avatar answered Oct 04 '22 02:10

Pascal MARTIN