Search Engine Optimization

Archive for - May 1, 2008

A Spammer in Jail

An American who sent hundreds of thousands of spam emails was recently sentenced to 21 months of prison after pleading guilty of counts of tax avoidance and email headers falsification.

Edward “Eddie” Davidson, 35 years, of Louisville in Colorado, will have to also give nearly 715 000$ to the IRS – Internal Revenue Service.

It’s a good thing that spammers are actually going to jail for their actions because I’m one of their victims: I get approximately 60 &%?$@ spam every single day!!!

Comments Back to Top Back to Homepage

Blog Post Separator

DOCTYPE – Document Type Declaration

Each HTML document must begin with a document type declaration that declares which version of HTML the document adheres to. There’s a few common DOCTYPE declarations:

HTML 4 Strict
HTML 4 Strict is a trimmed down version of HTML 4 that emphasizes structure over presentation. Deprecated elements and attributes (including most presentational attributes), frames, and link targets are not allowed in HTML 4 Strict. By writing to HTML 4 Strict, authors can achieve accessible, structurally rich documents that easily adapt to style sheets and different browsing situations. However, HTML 4 Strict documents may look bland on very old browsers that lack support for style sheets.The document type declaration for HTML 4.01 Strict is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Newer browsers such as Internet Explorer 5 for Mac, Netscape 6, and Mozilla use a standards-compliant rendering for HTML 4 Strict documents. These browsers use a “quirks” mode for most other document types to emulate rendering bugs in older browsers.
 
 
HTML 4 Transitional
HTML 4 Transitional includes all elements and attributes of HTML 4 Strict but adds presentational attributes, deprecated elements, and link targets.The document type declaration for HTML 4.01 Transitional is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Newer browsers such as Internet Explorer 5 for Mac, Netscape 6, and Mozilla use a standards-compliant rendering for HTML 4.01 Transitional documents that include the URI of the DTD in the DOCTYPE. These browsers use a “quirks” mode to emulate rendering bugs in older browsers if the URI is omitted:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
 

XHTML 1.0 Strict

<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Use this when you want really clean markup, free of presentational clutter. Use this together with Cascading Style Sheets.

XHTML 1.0 Transitional

<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Use this when you need to take advantage of HTML’s presentational features and when you want to support browsers that don’t understand Cascading Style Sheets.

Deciding between HTML and XHTML

The World Wide Web Consortium(W3C) recommends writing XHTML over HTML to better enable you to covert your documents to XHTML 2 when it arrives, so if this is something you plan to do, write XHTML now. If you find yourself having to take into consideration other factors, such as legacy applications or CMSs that are producing HTML 4 and if you need to save on bandwidth then it makes sense to use HTML 4 . But remember that it’s a dependent judgment on you own circumstances.

Comments Back to Top Back to Homepage

Blog Post Separator