Html Example


Prev Tutorial Next Tutorial

Html Example

Html is very simple language, Html code is write on any editor like notepad, edit plus, notepad plus plus. Html code are save with .html or .htm extension.

Save and Run Html code

Html code are save with .html or .htm extension.

For run Html code you need any web browser (chrome, firefox etc). No others software are required for run Html code web browser are enough.

Compile Html Code

No need to compile manually Html code, When you open your code in any web browser then Html code are interpreted by browser interpreter.

Syntax

<!DOCTYPE html>
<html>
<body>
<p>This is my first Html code.</p>
</body>
</html>

Result

This is my first Html code.

Description of Example

  • <DOCTYPE:> It defines the document type.
  • <html> : Text between <html> tag describes the web document.
  • <body> : Text between <body> tag visible to for users.
  • <h1> : Text between <h1> tag describes the heading of the webpage.
  • <p> : Text between <p> tag describes the paragraph of the webpage.

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements