
Writing a simple web page in HTML is one of the most satisfying ways to start learning web development. Within minutes, you can turn a blank text file into a real page that displays in any browser. Rather than covering only theory, this guide takes a practical, project-based approach. You will plan a simple personal profile page, build it section by section using HTML, add basic CSS to make it attractive, ensure it works on mobile devices, and learn best practices that will serve you in every future project.
How AAMAX.CO Turns Simple Pages Into Complete Websites
A single HTML page is a great beginning, but businesses typically need multi-page, optimized websites that attract and convert visitors. AAMAX.CO is a full service digital marketing company offering web development, digital marketing, and SEO services worldwide. They transform simple concepts into fully functional, professionally designed websites. Their website development services deliver fast, accessible, and search-friendly websites built on clean code and modern best practices.
Planning Your Page
Before writing code, decide what your page will contain. For this project, imagine a personal profile page with five parts: a header with your name and a short tagline, an "About Me" section, a list of skills or interests, a featured image, and a footer with contact links. Planning content first makes coding easier because you know exactly what elements you need.
Setting Up Your Project
Create a folder named "profile-page." Inside it, create a file named index.html and an images subfolder for your photo. Open the folder in a code editor such as Visual Studio Code. If you install a live server extension, your browser will refresh automatically every time you save, which makes learning faster and more enjoyable.
Writing the Document Skeleton
Begin with the essential structure every HTML page needs. Start with the doctype declaration so browsers use modern standards. Add the html element with a lang attribute set to your page's language. In the head section, include a meta tag for UTF-8 character encoding, a viewport meta tag so the page scales properly on phones, a descriptive title, and a meta description that summarizes the page for search engines. Then add an empty body element where your visible content will go.
Many code editors can generate this skeleton automatically. In Visual Studio Code, typing an exclamation mark and pressing Tab creates a complete starting template.
Building the Header
Inside the body, add a header element. Within it, place an h1 element containing your name; this is the most important heading on the page. Below it, add a paragraph with a short tagline, such as your profession or a phrase that describes you. The header is the first thing visitors see, so keep it clear and concise.
Creating the Main Content Area
After the header, add a main element to hold the primary content. Using main tells browsers and assistive technologies where the core content of the page begins, which helps screen reader users skip directly to it.
Inside main, create a section for "About Me." Give it an h2 heading and one or two paragraphs describing yourself, your background, and your goals. Use strong or em elements sparingly to emphasize important words.
Adding a List of Skills
Create another section with an h2 heading such as "Skills" or "Interests." Below the heading, add an unordered list using the ul element, with each skill wrapped in an li element. Lists make information easy to scan and are semantically meaningful, so screen readers announce how many items they contain.
Including an Image
Place a photo in your images folder, then add an img element in your about section. Set the src attribute to the image's path, such as images/profile.jpg, and write meaningful alt text describing the photo. Add width and height attributes matching the image's proportions to prevent the layout from shifting as the page loads. Compress the image beforehand so the page stays fast.
Writing the Footer
Close the page with a footer element. Inside, add a short paragraph inviting visitors to get in touch and include links using the a element. You might link to your email address using a mailto link, or to your professional social profiles. Make link text descriptive, such as "Email me" or "View my portfolio," rather than generic phrases.
Adding Basic CSS Styling
Now make your page attractive. In the head, add a style element or link to an external stylesheet. Start with the body: choose a readable font family, set a base font size of around 16 pixels, a line height of 1.6, and comfortable text and background colors. Constrain content width with a max-width of roughly 700 pixels and center it with automatic horizontal margins, so lines of text are not too long on wide screens.
Style the header with extra padding and a contrasting background color. Give headings a distinct color and spacing. Round the corners of your image and make it responsive by setting max-width to 100 percent and height to auto. Style links with a clear color and an underline or hover effect so users recognize them as clickable.
Making the Page Mobile Friendly
Because you included the viewport meta tag and used flexible widths, your page already adapts well to small screens. Use padding on the body so content does not touch the edges of the screen on phones. If you want different layouts on larger screens, add a media query that applies styles only above a certain width, such as placing your image beside the about text on desktops. Test your page using the device toolbar in your browser's developer tools.
Best Practices for Clean HTML
Indent nested elements consistently so your code is easy to read. Use lowercase for element names and attributes, and always quote attribute values. Choose semantic elements over generic div elements whenever possible. Validate your code with the free W3C HTML validator to catch mistakes. Keep content, structure, and styling separate by moving CSS into its own file as your project grows.
Publishing Your Page
When you are happy with your page, publish it using a free static hosting service such as GitHub Pages, Netlify, or Vercel. Upload your folder or connect it through a Git repository, and within moments your page will be live on the internet with a shareable link.
Conclusion
Learning how to write a simple web page in HTML through a hands-on project builds real skills quickly. By planning your content, writing a proper document skeleton, using semantic elements, adding images and links, styling with basic CSS, and ensuring mobile friendliness, you have created a complete, professional-looking page. Keep experimenting with new elements and styles, and each page you build will strengthen your foundation in web development.