HTML: How to create your first web page

how to create web page

Let’s see how you to create your first web page.  You have now installed your first plugin in your VSCode.  As we proceed you may need to add more plugins using the same technique. So congratulations.

Now if you are viewing the code you wrote in day 2 on your web browser, you notice how the <h1> element appears on your browser without any styles and notice also that your title appears on the browser tap – I am using Google Chrome as my browser.

Under the <h1> element you can now add <h2> tag

<h2>This is my first blog Post </h2>

Press enter and add another <h2> element and add

<h2>HTML is amazing</h2>

Now let’s add some paragraphs

Paragraphs are element for larger volume of text. And we declare them thus

<p>text between </p>

To get a dummy text for this example or any template you will build in the future, go to Google and get some blind text. On the search bar just type “blindtext”.  Blind text is commonly used if you don’t have any real text for the page you are developing. You can also use any text in your laptop for this example.

<p>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,

Recommended for you  How to install VSCode - Our Text Editor

</p>

Now copy this and paste under the second <h2> element

<h2>HTML is amazing</h2>

<p>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,

</p>

Now suppose you want to do some basic formatting. I’ll show you how to do that. To bold the text, use the strong tag.

Example: This is a very <strong>strong</strong> text and it is designed to be <strong>bold</strong>.

Recommended for you  What is HTML

Now for the ***italics*** we use the <em> tags which stands for emphasis.

Example: I would like to <em>emphasis</em> how important it is to follow this course to the end. Don’t run <em>away</em>.

Now for the underlines text, we use the <u> tag though it is not commonly used on the main website.

Example: This text is some <u>underlined</u> text.

Now you will notice with all the line breaks nothing happens in the browser. Therefore to get a line break we use the <br> tag.

Congratulations. You’ve just created your first html web page. It is not formatted and could be used to display text as simple blogs. It is good for the beginning.

Our next task; we will add some images to this page to make it a little lively.

Your final code for how to create web page should look thus

<!DOCTYPE html>

<html>

            <head>

            <title>My First BlogPost</title>

            </head>

            <body>

            <h1>My first blog Post</h1>

                        <h2>This is my first blog post</h2>

<p>

This is a very <strong>strong</strong> text and it is designed to be <strong>bold</strong>.<br>

I would like to <em>emphasis</em> how important it is to follow this course to the end. Don’t run <em>away</em>.<br>

This text is some <u>underlined</u> text. <br>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.

Recommended for you  How to include Images on your web page and HTML Image Attributes

</p>

                        <h2>HTML is Amazing</h2>

<p>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. </p>

            </body>

</html>

However, if you want to support us, you can contact the admin on 08034417104.  Fill this form to be part of our community and click here to join our community whatsapp group.

Ubong Nsekpong

Ubong Nsekpong is a graduate of Communication Engineering from FUTO. Founder, TechForest SoftTechnologies Ltd. A web developer, digital marketer, writer and a passionate promoter of the tech ecosystem in Nigeria South.

Leave a Reply

Your email address will not be published.