What Doctype?

What doctype are others using?

Geeks, making the world a better place
Quote · 14 Feb 2013

mostly walk in... family docs suck here ;)

Quote · 14 Feb 2013

XHTML1 for the most part

Quote · 14 Feb 2013

What the dolphin templates were designed for. You will find the proper doctype at the top of _header.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

https://www.deanbassett.com
Quote · 14 Feb 2013

I use HTML5, but that's because I'm mucking about with a Bootstrap template.  That said, there's no reason to change your site's DOCTYPE.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 14 Feb 2013

 

What the dolphin templates were designed for. You will find the proper doctype at the top of _header.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

So why is transitional the proper doctype?  After all, transitional means just that; a doctype used when transitioning from older markup.  Just because this is the doctype that ships with Dolphin does not necessarily mean it is the doctype we want to use.  The doctype has a bearing on how the browser will render the page.

Geeks, making the world a better place
Quote · 14 Feb 2013

Is it because the Dolphin code still contains a lot of markup that would break under anything but a transitional doctype?

Geeks, making the world a better place
Quote · 14 Feb 2013

Your members won't care what doctype they are viewing

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 14 Feb 2013

Yes. Mostly. It would take a lot of work to get dolphin to conform to strict standards. But then, do you want it to.

I will give you an example.

Have you ever had the need to use a iframe in any of your pages? Well if you want to switch to strict, you may as well forget it. iframe is not allowed in strict documents. Neither are any of these commonly used elements.

u
center
font
strike.

These attributes would not be allowed. except where noted.

align (allowed on elements related to tables: col, colgroup, tbody, td, tfoot, th, thead, and tr)
language
background
bgcolor
border (allowed on table)
height (allowed on img and object)
hspace
name (allowed in HTML 4.01 Strict, not allowed on form and img in XHTML 1.0 Strict)
noshade
nowrap
target
text, link, vlink, and alink
vspace
width (allowed on img, object, table, col, and colgroup)


Then there are content model differences.

An element type’s content model describes what may be contained by an instance of the element type. The most important difference in content models between Transitional and Strict is that blockquote, body, and form elements may only contain block level elements. A few examples:

text and images are not allowed immediately inside the body element, and need to be contained in a block level element like p or div
input elements must not be direct descendants of a form element
text in blockquote elements must be wrapped in a block level element like p or div

https://www.deanbassett.com
Quote · 14 Feb 2013

 

Your members won't care what doctype they are viewing


Very true. All the members will care about is that it works.

Only obsessed admins care about this stuff.

https://www.deanbassett.com
Quote · 14 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.