CREATING FIRST HTML WEBPAGE

Hello, Friends today we're going to build our first webpage in HTML.
So let's get started

To begin, open notepad and save the file with any name you want, as long as it ends with .html.
Example :  myFirstWebpage.html

So we're all set to begin the key coding. 

As previously mentioned, every html document starts and ends with html element and everything else goes in between them.

<html>
</html>

then after opening<html> tag we will add head element

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

Inside the head element, we will include a title element to set the title of our web page you can give any name (website's name or name related to page) inside title element it will be shown in the browser's title bar.

<html>
        <head>
                <title>My First Page</title>
        </head>
</html>

After that we will add body element

<html>
        <head>
                <title>My First Page</title>
        </head>
        <body>
        </body>
</html>

Inside the body element, we will display hello world inside the h1 element. Basically, the h1 tag is used for the heading of the page.

Output

<html>
        <head>
                <title>My First Page</title>
        </head>
        <body>
                <h1>Hello World</h1>
        </body>
</html>

save the file and go to the location you saved it and open it with any browser.

If you want to change the content of your file, open notepad and go to file -> open, then select your html file, update it as needed and save it. Then open the browser and reload the browser your updated result will be displayed on the browser window

Wohooo!! we successfully created our first webpage. See it's really very easy if you have a detailed understanding of HTML tags. In subsequent blogs, we'll look at various html tags that will assist you in creating your own website.

If you have any questions regarding the post, please leave them in the comments section.

In the next post, we are going to see about IDE(Integrated Development Environment) stay tuned 😃

Comments

Popular posts from this blog

BASICS OF HTML FOR BEGINNERS

html, head, body elements