HTML Tutorial - How to create HTML file in text editor???

Do you want to create a website with many web pages???

Do you look for a language for creating a website??

If your answer is “yes”, let us start to use this language “HTML”.

What is HTML?.

HTML is expanded as Hyper Text Markup Language used to create webpages and websites.

It has many elements which makes the browser to display the content.

HTML: how it comes…

    Initially, HTML was derived from SGML (Standard Generalized Markup Language). After HTML, it was HTML+. Next versions of HTML are HTML 2, HTML 3, HTML 4 and HTML5. Current version is HTML 5.

HTML has a structure with many elements with attributes, character and entity references. The structure is given below.

<!DOCTYPE html>

<html>

<head> A sample for HTML </head>

<body>

<p>Welcome to the world of HTML</p>

</body>

</html>

Where,

<> symbol is used to represent elements.

 <html>, <head>, <body> are opening tags

</html>, </head>, </body> are closing tags

DOCTYPE defines the type of document. Here, the document type is html.

How to create HTML file in text editor???

Simple steps are given below.

  • Just open a text editor like notepad.
  • Type the above code and save the file with .html extension.
  • Open the file in the web browser.
  • Finally, the web browser displays your contents.

 The above file gives you a simple output

 A sample for HTM

Welcome to the world of HTML 


You can use any text editor instead of notepad. 

No comments:

Post a Comment