![]() |
VOOZH | about |
Building a website using HTML (Hypertext Markup Language) is the foundation of web development. HTML allows you to structure content, define headings, paragraphs, lists, and links, and create visually appealing web pages.
In this article, we'll learn the fundamentals of How to build a Website using HTML with all the key components like elements, tags, file structure, etc.
To create a basic HTML website, the first step is to set up an HTML document. This can be done using any text editor, such as Notepad, Sublime Text, or Visual Studio Code. Here's how to get started:
To create an HTML document follow the following steps:
Step 1: Open your text editor such as Notepad Sublime Text, etc.
Step 2: Write the code given below in the text editor.
Step 3: Save this file with the .html/.htm extension.
👁 ImageStep 4: Open that file with any browser. The output will be displayed.
👁 ImageSo this is how we create a simple HTML document.
To create a website using HTML, you need to understand the various tags and attributes. HTML tags are used to structure the content, while attributes provide additional information.
<h1> to <h5>):<h1> is the largest heading, while <h5> is the smallest.<strong> or <b>):<i> or <em>):<i> for italics.<em> provides semantic emphasis on important text.<ol>):<li>.| Type | Description |
|---|---|
| type="1" | Numbered with numbers(default) |
| type="A" | Numbered with Uppercase Alphabets |
| type="a" | Numbered with Lowercase Alphabets |
| type="I" | Numbered with Uppercase Roman Numbers |
| type="i" | Numbered with Lowercase Roman Numbers |
5. Unordered List (<ul>):
<li> for each list item.| Type | Description |
|---|---|
| type="disc" | Items are marked in Bulletin. (default) |
| type="circle" | Items are marked with hollow circles. |
| type="square" | Items are marked with squares. |
| type="none" | Items are not marked. |
6. Image Tag: If we need to add an image to our website we need to use the following syntax.
Syntax:
<img src="filename" alt="name / bit about image">
Here,
7. Anchor Tag: This tag is mainly used to connect one website to another.
Syntax:
<a href="https://www.geeksforgeeks.org/cpp/c-plus-plus/"> Click Here to Learn C++</a>
Note: Nesting is possible in HTML, which means that we can write one tag between another tag.
Example: In this example we providing steps to make spread cookies, including preheating, mixing ingredients, shaping dough, baking, and serving. Ordered list structured with steps. Page title "Steps To Form Spread Cookies."
Output
👁 ImageLet's create a simple webpage for a "Steps to Bake Cookies" guide, using an ordered list to outline the steps.
Output: