Many people try to create their own websites or include their own code snippets into certain web based projects. It is great that people feel comfortable with writing their own code. However, there are some things that laypersons may miss when generating the code for their projects. One of those oversights may be the <!Doctype> tag.
The <!Doctype> tag is an important part of any html document. It is the first tag that you will see from a professionally designed web page. It is true that a html page will load without the tag, but if it does, it will be loaded in the "quirks mode." The quirks mode html page load means that the browser will know that html is present, but doesn't know exactly which type of html to expect.
Web browsers have come a long way in terms of being able to have a standard way to interpret html and css. At one point, different browsers would display html in unexpected and unpredictable ways. For example, a Windows 95 browser may display a page slightly differently than an Apple Mac computer. This would make it very difficult for web designers to have a consistent look across many different machines and browser versions.
Lately, browser developers have agreed to conform to certain widely accepted standards making it much easier to predict how a page will look on an internet capable device.
Consider this code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
The code above is much more descriptive than <!DOCTYPE html>.
In the first code example above, a browser will have more information so that it knows exactly how to properly render the web page.
For some projects, this is a minor issue, but for professional projects, you may want to make sure that your web page will display in a way that gives you the best chance of accomplishing your business objectives. If your page looks weird and unprofessional on your viewers device, they may decide that your website is not a safe place to do business. That is NOT what you want to happen.
Many new tools exist in the marketplace where the tool will generate html for you. That may be fine for some circumstances but if you're trying to build a business that will scale, I suggest you leave the web development to a professional who knows and understand the code that's being automatically generated.
There is simply no substitute for a web developer who can write custom code for your web project.
However you decide to proceed with your project, good luck to you in your endeavors and if you decide you are ready for a professionally designed website from designers who know how to write custom code, don't hesitate to learn more about us today.
Lead Designer / Software Developer
Stephen Wicks Internet Development Company