Introduction to Design Web Page in HTML

Design Web Page in HTML

Introduction to Design Web Page in HTML

HyperText Markup Language (HTML) is one of the most popular languages to design Web Pages and their content. HTML uses different tags, elements, images and some latest components to make Web Pages more attractive and user-friendly. With the help of some CSS, the look and feel of the web page can be easily changed. It should be considered an important source in the World Wide Web to structure the web page properly. It is possible by using simple text editors to edit and save changes whenever they want.

Steps to Design Web Page in HTML

There are some basic steps considered to design web pages using HTML are as follows:

  1. Designing Layout: Before actually starting to design a web page, it is necessary to prepare a rough overview for your web pageThis helps the user to put elements according to their need. Web pages should be divided into 3 parts header, body and footer part.
  2. Do code set up: Firstly, create one folder where you are going to store all your web pages. Simply prepare the style.css file if we want to add external code to our HTML web page and simple index.html page just for checking whether the code is working properly or not.
  3. Building elements: Start designing elements for building web page ,firstly create <head> , <body><main><sections> and after putting all elements lastly<footer>part. It should be collection of different tags like <p>,<b>,<i> <h1>to <h6> heading tags, <title>,<sub>,<ol>, <ul> ,<a herf=””>, <section> , <articles> <img>, <iframe> and elements like<table> , <nav>, <button> ,<textarea> etc.
  4. Some CSS code to your layout: To fix elements at some specific location, it is necessary to set them using some CSS code and try to highlight your important elements.
  5. Customize your web page: This step helps us to improve the looks and feel of our webpage. It includes things like adding a background image to the website, adding some video content to engage the user with web pages, adding links, comments, lists to your web page.

How to Design Web Page in HTML?

Designing web pages by using HTML is one of the simplest concepts. There are some scenarios that define how to design a web page in HTML. They are as follows:

  • Editor: In this scenario, we are going to write some HTML code by using the editor. There are various editors available nowadays like notepad++, brackets, TextEdit, etc.
  • HTML code: As per your web page layout and all things discussed in the syntax, put HTML code here in all tag and element format.
  • Save File: once you are done with the Html code, the next step is to save all HTML code. Save this with a .html extension on the required location.
  • Open a web page in the browser: In this step, we are going to open our HTML page in the browser to check the output.

Examples to Design Web Page in HTML

Let’s we will create some web pages to see the actual resultant web page.

Example #1

Here we are creating a simple web page with some HTML elements and tags. Setting one image as a background and some text on it to look like:

HTML Code:

.card {
max-width: 200px;
margin: auto;
text-align: center;}
background-image: url('Travel.jpg');
background-repeat: no-repeat;
.price {
color: blue;
font-size: 18px;
.card button {
color: white;
background-color: green;
text-align: center; }
<body id="main">
<h2 style="text-align:center">Place to visit in India</h2>
<div class="card">
<img src="download.jpg" style="width:100%">
<h1><b>Explore Best In India</b></h1>
<h2 class="price">INR 39,990/-</h2>
<li>Chadar Trek</li>
<li>Andaman and Nicobar</li>
<li>Mount Abu</li>
<p><button>Book Here</button></p>


Design Web Page in HTML 1-1

Example #2

In this example, we are going to create one Feedback form as a web page. Popular Course in this categoryHTML Training (12 Courses, 19+ Projects, 4 Quizzes)12 Online Courses | 19 Hands-on Projects | 89+ Hours | Verifiable Certificate of Completion | Lifetime Access | | 4 Quizzes with Solutions
4.5 (6,502 ratings)Course Price
₹6999 ₹41999
View Course

Related CoursesBootstrap Training (2 Courses, 6+ Projects)XML Training (5 Courses, 6+ Projects)CSS Training (9 Courses, 9+ Projects)

HTML Code:

<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
input[type=text], select, textarea {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
margin-top: 4px;
margin-bottom: 10px;
input[type=submit] {
padding: 8px 8px;
.container {
border-radius: 6px;
background-color: #EFF6F6;
padding: 10px;
<h3>We welcome your suggestions</h3>
<div class="container">
<label for="fname">First Name</label>
<input type="text" id="fname" name="firstname" placeholder="Enter Your name">
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lastname" placeholder="Enter Your last name">
<label for="ename">Email</label>
<input type="text" id="ename" name="email" placeholder="Enter Your Email here">
<label for="mobno">Contact No</label>
<input type="text" id="mobno" name="mobno" placeholder="Enter Your Contact Number">
<label for="subject">Feedback</label>
<textarea id="subject" name="subject" placeholder="Give your feedback
<input type="submit" value="Send">


Design Web Page in HTML 1-2

Example #3

In this example, we are going to create another web page that will show the homepage of a particular website.

HTML Code:

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
* {
box-sizing: border-box;
body {margin: 0;}
.header {
padding: 10px;
text-align: center;
background: orange;
color: white;
.navbar {
overflow: hidden;
background-color: dimgrey;
.navbar a {
float: left;
display: block;
color: white;
text-align: center;
padding: 10px 10px;
.navbar a.right {
float: right;
.navbar a:hover{
background-color: #eee;
color: black;
.row {
display: flex;
flex-wrap: wrap;
.sidebar {
flex: 10%;
background-color: #f1f1f1;
padding: 20px;
.main {
flex: 80%;
background-color: white;
padding: 20px;
.logoimg {
<div class="header">
<div class="logoimg" style=""><img src="cropped-EDUCBA_LOGO.png"></div>
<h1>Welcome to EDUCBA</h1>
<div class="navbar">
<a href="">Finance</a>
<a href="">Data Science</a>
<a href="">Software Development</a>
<a href="">Excel</a>
<a href="">Design</a>
<a href="#" class="right">Login</a>
<div class="row">
<div class="sidebar">
<h2>Contact US</h2>
<div><img src="Contact.jpg" style="height:100px;"></div>
<div ><img src="Reviews.jpg" style="height:100px;"></div>
<div class="main">
<h2>WHO IS EDUCBA?</h2>
<p>Choose your interest area and get certified with our online Courses in Finance, Data Science, Software Development, Excel, Design, Project Management, Personal Development, Marketing and Human Resources..</p>
<div class="row">
<div class="sidebar">
<h2><u>Certification Courses</u></h2>
<a href="">Financial Analyst Course - All in One Bundle</a><br>
<a href="">Marketing Course - All in One Bundle</a><br>
<a href="">Human Resource Course - All in One Bundle</a><br>
<a href="">Design Course -All in one Bundle</a> <br>
<a href="">Excel VBA Course - All in One Bundle</a>
<div class="sidebar">
<h2><u>Free Courses</u></h2>
<a href="">Free Course on Data Science</a><br>
<a href="">Free Course Graphic Design</a><br>
<a href="">Free Online Excel Course</a><br>
<a href="">Free Course Digital Marketing</a><br>
<a href="">Free Course Programming</a>


<!–Design Web Page in HTML 1-3–>


From all the above discussion, we can say that Web pages are created by using HTML code in a very simplified manner. Just simply put your HTML code in any one editor, save it with the .html extension and open it within any browser.

Recommended Articles

This is a guide to Design a Web Page in HTML. Here we discuss the introduction and steps to design web pages in HTML along with the examples and code implementation. You may also look at the following articles to learn more-

  1. HTML Blocks
  2. Html5 vs Html4
  3. HTML Canvas
  4. Moving Text in HTML

Leave a Comment

Your email address will not be published. Required fields are marked *