Welcome to the HTML & CSS Complete Tutorial! This guide will walk you through building a basic webpage using HTML and CSS. Let's get started!
📁 HTML Structure
HTML is the backbone of any webpage. Start with the basic template:
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a paragraph.</p>
</body>
</html>
🎨 CSS Styling
Add styles to your HTML using CSS. Here's an example:
body {
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
h1 {
color: #333;
}
🧩 Example Project
Create a simple webpage by combining HTML and CSS:
<!DOCTYPE html>
<html>
<head>
<title>Styled Page</title>
<style>
body {
background-color: #e6f7ff;
}
.container {
width: 80%;
margin: auto;
padding: 20px;
border: 1px solid #ccc;
}
</style>
</head>
<body>
<div class="container">
<h1>Styled Page</h1>
<p>This paragraph is styled with CSS.</p>
</div>
</body>
</html>
📘 Further Reading
For more advanced topics, check out our JavaScript Tutorial or HTML & CSS Reference Guide.