So I am using a library, as a developer developing an HTML output app, that will eventually produce some form of markup document. Correct? It makes sense to me to utilize names that are the cleanest and easiest to recognize.Ambush Commander wrote:Suppose you were using a library, which could output certain types of HTML. HTML 4 Strict, Transitional, XHTML 1.0, XHTML 1.1, XHTML 2.0, you name it. And you needed to specify which language you wanted the library to output. How would you prefer to identify it?
Something along the lines of what nickvd posted...
Code: Select all
<?php
$doctypes = array(
'html401s' => array(
'name' => 'HTML 4.01 Strict',
'doctype' => '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'
),
'html401t' => array(
'name' => 'HTML 4.01 Loose',
'doctype' => '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'
),
'html401f' => array(
'name' => 'HTML 4.01 Frameset',
'doctype' => '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'
)
// etc
);
?>