on air

Doctype Declaration (DTD).

back home » webtutorials » Doctype Declaration (DTD).


Scenario.

To start writing your HTML codes you'll first have to define a <!DOCTYPE> Declaration (DTD) for your page.

This will instruct the web browser about the version of the markup language your document is written in, so that the browser can render its content accurately.

What Is A <!DOCTYPE> Declaration (DTD).

The doctype declaration, meaning a Document Type Definition (DTD), defines the rules for the markup language.

Below are Doctypes present in the W3C Recommendations, and their descriptions.

You may copy and use in your document, depending on the type of document you'll prefer to write.

Read carefully, and make sure to use them correspondingly so as to be able to create the right document that browsers can render correctly.

Below are list of DOCTYPEs..

HTML 4.01 Strict.

Using this DTD your document can contain all HTML elements and attributes. Presentational or deprecated elements like font, and Framesets are not allowed.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"https://www.w3.org/TR/html4/strict.dtd">

HTML 4.01 Transitional.

Using this DTD your document can contain all HTML elements and attributes, including presentational and deprecated elements like font. But not Framesets.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"https://www.w3.org/TR/html4/loose.dtd">

HTML 4.01 Frameset.

Using this DTD your document can contain all HTML elements and attributes, including presentational, deprecated elements like font, and Framesets content.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" 
"https://www.w3.org/TR/html4/frameset.dtd">

XHTML 1.0 Strict.

Using this DTD your document can contain all HTML elements and attributes, but not presentational or deprecated elements like font. The markup must be written as well-formed XML. Framesets are not allowed.

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

XHTML 1.0 Transitional.

Using this DTD your document can contain all HTML elements and attributes, including presentational and deprecated elements like font. Framesets are not supported. However, the markup must also be written as well-formed XML.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

XHTML 1.0 Frameset.

Using this DTD your document can contain all HTML elements and attributes. Presentational and deprecated elements like font, also Framesets content are supported. And the markup must again be written as well-formed XML.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" 
"https://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

XHTML 1.1.

Using this DTD your document can contain all HTML elements and attributes, but not presentational or deprecated elements like font. The markup must be written as well-formed XML. Framesets are not allowed.

Plus, allows you to add modules that can provide you with support for other languages.

For example, providing of ruby support for East-Asian languages.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

HTML 5

Using this DTD your document can contain all HTML, and XHTML elements and attributes.

HTML5 is not SGML based, and so therefore does it not require a reference to a DTD.

<!DOCTYPE html>

The DOCTYPE Declaration of HTML.

Clicks4UrMind

Man will give you worldly powers, and make you feel on top of all, note this is temporally and could be redrawn at anytime sending you back to the ground floor of life. However, the Lord Almighty, the one and the only rightful ruler of the Universe, blesses everlastingly.

Brain

Knowledge is Power, but Power is not Knowledge. Wisdom is the truthful Power that identifies the Knowledge within the man. And only, I repeat 3x. Only the almighty God has the power to bless the man with his Wisdom forever.

To achieve the Lord's blessings, cease not praying daily, asking for his Wisdom, and you'll be blessed abundantly...

SPYERA PHONE

Spyera Phone

Spyera Phone version is software that you install on a smart phone to monitor everything happening on the phone. After installation, SPYERA secretly records events (sms, call history, phone book, location, emails, What's App messages, IM, Facebook Chat, Skype, See photos taken and many more...) that happen on the phone and delivers these information to a web account, where you can view these reports 24/7 from any Internet enabled computer or mobile phone. SPYERA also allows you to listen to the surroundings of the target mobile , listen to the phone conversation and to know the location of the device.


Please, Kindly Donate What You Can, Enabling Us Pay Hosting And Domain Costing, And Do More.

Please Donate