user1481096
user1481096

Reputation: 317

Which HTML tags are indispensable for a HTML document?

Forget about those smart rendering engines of state-of-art browsers. In terms of the W3C standards, which are the "indispensable" (non-removable) tags for a standard HTML document?

Furthermore, is there any difference about it in the HTML5 standard?

Thanks.

Upvotes: 0

Views: 75

Answers (3)

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201896

By the HTML 4.01 specification, the only obligatory tags are <title> and </title>. The same goes for the HTML5 drafts. In XHTML, different rules apply, see the spec.

Upvotes: 0

Madara&#39;s Ghost
Madara&#39;s Ghost

Reputation: 175098

The elements which every document must have are: <html>, <head>, <title>.

Upvotes: 1

ceejayoz
ceejayoz

Reputation: 180176

According to the validator, this is valid:

<!DOCTYPE html>
<head>
<title>Title</title>

edit: Even smaller:

<!DOCTYPE html>
<title>Title</title>

Upvotes: 2

Related Questions