How many parts are present in HTML documents?

Questions by timmy   answers by timmy

Showing Answers 1 - 6 of 6 Answers

Sujatars

  • Jul 30th, 2007
 

A basic html document consists of

<html>
<head>

</head>
<body>
</body>
</html>

You can include no.of functions,tags inside body or head element.

  Was this answer useful?  Yes

mramreddy

  • Feb 9th, 2010
 

An HTML 4 document is composed of three parts:

  1. A line containing HTML version information,
  2. A declarative header section (delimited by the HEAD element),
  3. A body, which contains the document's actual content. The body may be implemented by the BODY element or the FRAMESET element.

White space (spaces, newlines, tabs, and comments) may appear before or after each section. Sections 2 and 3 should be delimited by the HTML element.

Here's an example of a simple HTML document:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
      <TITLE>My first HTML document</TITLE>
   </HEAD>
   <BODY>
      <P>Hello world!
   </BODY>
</HTML>

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions