Reputation: 317
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
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
Reputation: 175098
The elements which every document must have are: <html>
, <head>
, <title>
.
Upvotes: 1
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