Creating HTML Document

HTML document has the head and body part. In the head, add the document’s information and in the body, add the content.

An HTML document/ web page begins with the following declaration,

<!DOCTYPE html>

The head part comes under,

<head></head>

The body part comes under,

<body></body>

The following is an example of an HTML document,

Code

<!DOCTYPE html>
<html>
   <head>
      <title>First HTML Document</title>
   </head>
   <body>
      <p>Add content here.</p>
      <p>Learning examples from Studyopedia website</p>
   </body>
</html>

Output

Create an HTML document

In the above example, we have used the paragraph tag to add content under the <body></body> content.

More Examples


HTML5 Online Quiz1
Creating headings in HTML web page
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment