Categories: Html

HTML Document Structure

Share

Here you will see how the basic html document structure looks like. The page includes a doctype declaration with a html, head, title and body element.

Doctype tells the browser what version oh html is using in the document.
For latest version html5 it is written as <!DOCTYPE html>

Read Also: HTML Forms

The other elements are:
html: Everything is wrtten between html tags.
head and title: In head tag we can put any javascript, css, meta words etc. Between title tag we used to show page title.
body: Here text, images, form, tables are used.

Let’s see a simple document structure:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
...
</body>
</html>
Published by
CSS Designer
Tags: htmlweb

Recent Posts

Overview of Reputation, Services, and Features of IplWin

IplWin stands as a reliable and enthralling platform for Indian punters, offering a captivating blend…

19 hours ago

Blogging Brilliance: Driving Traffic and Engagement with Quality Content

Introduction In today's online age, consumers are constantly bombarded with information. They crave valuable content…

24 hours ago

How Assisted Living Gives Seniors More Freedom

In today’s rapidly aging society, finding a living situation that provides older adults with both…

1 day ago

Should you go for a Refurbished Mac?

If you wish to purchase a Mac, then it is strongly suggested to consider purchasing…

2 days ago

How Many Types of Bits are Used in Drilling Operations?

Oil drilling is a complex process that involves several components, including the drilling bit. The…

2 days ago

Best Watches to Match Your Business Look

Watches can be more than a fashion. They can be a symbol, especially in the…

3 days ago