Simplify DOCTYPE definition with HTML5

  1. Previous
  2. Next
  3. Recent

    1. Signs 'He' May be Cheating on You
    2. 7 Vows of Hindu Marriage - Know What 'Saat Vachans' Mean
    3. RuPay vs Visa vs Mastercard vs American Express- A Comparison
    4. What is RuPay? Everything You Need to Know About India's Domestic Payment System!
    5. Top 10 Online Portals to Find a High Paying Job in India
    6. Top Indians who Revolutionized the IT Sector in India
    7. 8 Initiatives by Narendra Modi that Could Change the Future of the Nation
    8. 8 Work-from-home Jobs for Housewives, Students, and Part timers
    9. Complete Company Registration Process in India - Explained
    10. Change Name in India in 5 Steps - Filing Affidavit, Newspaper Ad & Gazette Notification

The only code web developers copy and paste is the long, weird, pesky XHTML DOCTYPE definition.

With HTML5, you can simplify the DOCTYPE definition of your webpage. Actually with HTML5, the use of DOCTYPE is no longer mandatory.

But we should continue using older DOCTYPE definition for some time as older browsers ask for it.

Here is how HTML5 simplifies the code,

Older doctype definition:

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

Doctype definition with HTML5:

<!DOCTYPE html>

All latest browsers – Firefox 5+, Chrome 12+, Opera 11.50+ fully supports HTML5 including the new DOCTYPE definition for websites.

blog comments powered by Disqus