Create your first html page

In this tutorial you will learn how easy it is to create an HTML document or a web page. To begin coding HTML you need only a simple-text editor and a web browser.
Lets get started with creating your first HTML page.

Create HTML File

Open your computes plain text editor(Notepad in windows) and create a new file. Lets copy the following content into the file you created and save it as myfirstpage.html

<!DOCTYPE html>
<html lang="en">
<head>
    <title>A simple HTML document</title>
</head>
<body>
    <p>Hello World!<p>
</body>
</html>

To open the file in a browser. Navigate to your file then double click on it. It will open in your default Web browser. If it does not, open your browser and drag the file to it.

Explain Code

  • The first line DOCTYPE html is the document type declaration. It instructs the web browser that this document is an HTML5 document. It is case-insensitive.
  • The element is a container for the tags that provides information about the document, for example, title tag defines the title of the document.
  • The body element contains the document actual content (paragraphs, links, images, tables, and so on) that is rendered in the web browser and displayed to the user.
  • Rasika Preethiraj

    A technophile at icrony since 2012, In a quest to programmatic automations for scaled organisations through the use of python, php, autoit and machine learning


    Comments


    Post a Comment



    Trending

    Latest Posts

    Tags

    Newsletter

    Subscribe to our newsletter for good news, sent out every month.