
Every website on the internet, no matter how complex, is built on HTML. HyperText Markup Language provides the structure for web pages, telling browsers where headings, paragraphs, images, and links belong. Learning how to make a basic HTML web page is the perfect first step into web development, and you need nothing more than a text editor and a web browser. This tutorial walks you through creating your first page from scratch, explaining each element so you understand not just what to type, but why.
How AAMAX.CO Turns Basic Pages Into Professional Websites
Writing your first HTML page is rewarding, but launching a professional website involves design, responsiveness, performance, and SEO. AAMAX.CO is a full service digital marketing company that offers Web Development, Digital Marketing, and SEO Services worldwide. Their developers write clean, semantic code and build fast, mobile-friendly websites tailored to business goals. When you are ready to move beyond the basics, their website development services can deliver a polished site that grows with your business. Learn more at AAMAX.CO.
What You Need to Get Started
You need a text editor and a browser. Built-in editors like Notepad on Windows or TextEdit on Mac in plain text mode will work, but a code editor such as Visual Studio Code is more helpful because it highlights syntax and offers suggestions. Any modern browser, including Chrome, Firefox, Edge, or Safari, can display your page.
Step 1: Create a Project Folder and File
Create a new folder on your computer called my-website. Open your text editor, create a new file, and save it inside that folder as index.html. The name index.html is a convention for a website's home page, and the .html extension tells the computer this is a web page.
Step 2: Add the Document Type and Root Element
Every HTML page starts with <!DOCTYPE html>, which tells the browser to use modern HTML standards. Next, add the opening <html lang="en"> tag and its closing </html> tag. The lang attribute declares the page language, which helps search engines and screen readers.
Step 3: Add the Head Section
Inside the html element, add a <head> section. This contains information about the page that is not displayed directly. Include <meta charset="UTF-8"> to support all characters, <meta name="viewport" content="width=device-width, initial-scale=1.0"> for proper display on mobile devices, and a <title> element, such as My First Web Page, which appears in the browser tab and in search results.
Step 4: Add the Body Section
After the head, add a <body> element. Everything inside the body is visible on the page. Start with a main heading using <h1>Welcome to My Website</h1>. Each page should have one h1 that describes its main topic. Use h2 through h6 for subheadings in a logical order.
Step 5: Add Paragraphs and Text Formatting
Add paragraphs with the <p> element. Write a short introduction about yourself or your project. To emphasize words, use <strong> for important text and <em> for emphasis. These elements carry meaning as well as style, which helps assistive technologies.
Step 6: Add a List
Lists organize information clearly. Use <ul> for a bulleted list and <ol> for a numbered list, with each item inside an <li> element. For example, you might list your hobbies, skills, or services.
Step 7: Add an Image
Place an image file in your project folder, then add <img src="photo.jpg" alt="A description of the photo">. The src attribute points to the file, and the alt attribute describes the image for people who cannot see it and for search engines. Always include meaningful alt text.
Step 8: Add a Link
Links connect your page to other pages. Use <a href="https://example.com">Visit Example</a> to link to another website, or link to another page in your folder, such as about.html. Descriptive link text helps users know where the link leads.
Step 9: Use Semantic Structure
Modern HTML includes semantic elements that describe sections of a page. Wrap your site title and navigation in <header>, your primary content in <main>, and copyright information in <footer>. These elements improve accessibility and help search engines understand your content.
Step 10: Save and View Your Page
Save the file and double-click it, or drag it into your browser. Your page appears with default styling. Each time you make changes, save the file and refresh the browser to see updates.
Step 11: Add Basic CSS Styling
To improve the look, add a <style> element inside the head, or link to an external stylesheet. Try setting a comfortable font, a maximum width for readability, and some spacing. For example, styling the body with a sans-serif font, a line height of 1.6, and centered content instantly makes your page more pleasant to read. As you progress, move styles into a separate CSS file to keep your code organized.
Common Beginner Mistakes
Forgetting to close tags, misspelling file names in src or href attributes, and saving files with the wrong extension are frequent issues. Using a code editor with syntax highlighting helps catch these mistakes. The free W3C validator can also check your HTML for errors.
Publishing Your Page
When you are ready to share your page, upload it to a hosting service. Many platforms offer free hosting for static websites, letting you publish with a few clicks or by connecting a code repository.
Conclusion
Learning how to make a basic HTML web page gives you a solid foundation for everything in web development. With a doctype, head, body, headings, paragraphs, lists, images, and links, you can build a complete page. Add a little CSS, practice regularly, and you will soon be ready to create multi-page websites and explore more advanced technologies.
