the web developer

The 21 Most Important Tools and Resources Used In Order to Develop a Website

The Internet today, is full of tools and resources, which can definitely help anyone develop a website. The timeframe that a developer spends on the site, will determine whether or not the website...


The 101 Most Useful Principles, Which Can Help Improve Your Life Forever

If we ever wondered why your life is not working as it you thought it should, it may be because you need to employ certain actions, which would take you to the next level. In today’s article, we...

Robot assisted surgery

Robot Assisted Surgery Will Change The Medical Field In Surgical Procedures

Robots are an amazing human invention, which we were able to accomplish due to the knowledge and understanding we have about the human body.

In today’s article we are going to talk about...

location based services

Location Based Services Are Changing The Way We Experience Mobile Devices

Our mobile world, has changed and will continue to change in the future; we need to be aware of these changes, so that they don’t catch us by surprise.

In today’s article, we are going to...

sd wan

Software Defined Wide Area Network, is The Future Of Network Infrastructure

Networking professionals have to now change their approach to networking design, due to the rapid change, that is happening in technology.

The introduction of cloud, the changes in IT...

Error message

Notice: Undefined variable: front_page in eval() (line 19 of /home/content/93/10477193/html/modules/php/php.module(80) : eval()'d code).

Mastering Cascading Style Sheet - Structuring Your Code - Document Type, DOCTYPE, Browsers and Validation


The website world, is an amazing world in which people are participants, all day every day, because people enjoy the time that they spend on the Internet.

Most people enjoy the Internet because, people get a lot out of the Internet, and find value on many websites, because the content on those websites, are valuable to people.

In today’s article, we are going to talk about document type, DOCTYPE, browsers and validation in terms of CSS3, in another series of CSS Mastery Structuring Your Code.

A set of rules which defines what is and isn’t allowed, in a particular XML or (X) HTML document, is known as a document type definition or DTD.

The machine readable rules, are then used by browsers, in order to parse a web page, to check the validity of the page, so that the web page can act accordingly.

A DTD and the version of the (X) HTML being used by a hypertext document, is known by the browser, when the page’s DOCTYPE declaration, is analyzed by the browser.

At the start of an (X) HTML document, there is a line or two of code known as the DOCTYPE declaration.

The DTD being used, by an (X) HTML document, is described by the DOCTYPE, which is declared at the top of the (X) HTLM document.

The specified DTD file, is accessed through a URL, which is typically, but not always included, in the DOCTYPE declaration.

Valid code, is usually needed, in order to write (X) HTML document, which would be correctly interpret by browser.

Usually browsers try to interpret the markup themselves, when the code is invalid.

However, browsers would usually not interpret an (X) HTML document, the right way; therefore, it is very important to write valid code, because browsers, would usually interpret an (X) HTML document the wrong way.

Sometimes, browsers will not display the (X) HTML document at all, if the code is not well written, even if the code is being sent with the correct MIME type.

MIME stands for Multipurpose Internet Mail Extensions, and it is known to be a way of identifying files on the Internet according to their nature and format.

A DOCTYPE declaration is required for the page to validate; therefore, browsers need to know which DTD to use in order to process an (X) HTML page correctly.

When you want to check your page, to know whether or not, it is valid then you need to use the W3C validator, a validator book market, or a plug-in validator found in browsers.

You can install a validator on your local machine as well, also many (X) HTML editors have a built in validator.

A validator usually tells you, whether or not your page validates, and if it’s not valid, then it will tell you why your page is not valid.

Validate your (X) HTML documents early and often, because it can help you to track down bugs, in your code.

But don’t think that validation is everything, and it can stall your development, it is important, but it should not slow the development of your website, down.

A degree of common sense is required to develop a website, and as long as you have that, you’ll be able to develop anything online.

Thank you, for reading this article!!!