As a beginner, diving into HTML can seem daunting, but fear not β this tutorial will guide you through creating a basic HTML website step by step. By the end, you'll have a simple, fully functional webpage, and you'll be well on your way to understanding the fundamentals of web development.

HTML, or HyperText Markup Language, is the standard markup language for creating web pages. It's like the scaffolding of a building β it provides the structure that gives your website its form and function. Let's get started!

Setting Up Your HTML File
First, you need to create a new file with a .html extension. For this tutorial, let's name it "index.html". Open your favorite text editor β could be Notepad, Sublime Text, or even Visual Studio Code.

Save the file with the correct encoding. UTF-8 without BOM is usually a good choice. This ensures that special characters and emojis display correctly on your webpage.
Declaring the DOCTYPE

The first line in your HTML document should declare the DOCTYPE. This ensures that your document is rendered in the correct mode, either Quirks Mode or Standards Mode. For HTML5, the DOCTYPE is simply:
<!DOCTYPE html>
Creating the Basic Structure

Next, you'll create the basic structure of your HTML document. It should look like this:
<html>
<head>

</head>
<body>



















</body>
</html>
Head and Meta Tags
The <head> section is like the information desk of your webpage. It contains metadata about your HTML document, including its title and link to CSS stylesheets.
The <title> tag sets the title of your webpage, which appears at the top of your browser tab. Let's give it a simple title: "My First Website".
Setting the Character Encoding
You've already saved your file in the correct encoding, but you should also declare it in your HTML with the <meta> tag:
<meta charset="UTF-8" />
Linking an External CSS File
Rather than using inline styles, it's best to link an external CSS file for your webpage's design. For now, let's call this file "styles.css". You'll create it later.
<link rel="stylesheet" href="styles.css" />
Body and Content
The <body> is where you'll place all the content that you want to display on your webpage. Let's start with a simple heading and some text.
Headers and Paragraphs
To create a big, bold heading, use the <h1> tag. For now, let's just write "Welcome to My Website":
<h1>Welcome to My Website</h1>
For smaller headings, use the <h2> to <h6> tags. Let's use <h2> for a subheading: "About Me".
<h2>About Me</h2>
For regular text, use the <p> tag. Let's add a brief paragraph about yourself:
<p>Hi, I'm a beginner web developer. HTML is my first step into this exciting world. I can't wait to learn more!</p>
Lists and Links
HTML offers various list types. Let's create an unordered list with some of your hobbies:
<ul> <li>Reading</li> <li>Hiking</li> <li> Coding</li> </ul>
You can also create ordered lists with the <ol> tag. And don't forget to add links to important websites or pages with the <a> tag. For example, to link to Google, use:
<a href="https://www.google.com">Google</a>
Your webpage is now fully functional, displaying headings, paragraphs, lists, and links. But it's a bit plain, right? Let's make it look better with some basic CSS styling.
Adding Style with CSS
Now it's time to create your "styles.css" file. In it, you'll target elements on your webpage and apply styles to them. Here's how to make your heading blue and your paragraph text-centered:
Save your "styles.css" file and refresh your "index.html". You should see your heading text turn blue, and your paragraphs center-aligned. Congratulations, you've just learned how to apply basic styling with CSS!
This tutorial only scratched the surface of HTML and CSS. There's so much more to learn, like forms, images, tables, and more advanced CSS. But you're well on your way to understanding the basics and building your first website. Happy coding!"