HTML Sample Code for Beginners

Here’s a simple HTML sample code for beginners. This example includes the basic structure of an HTML document, along with some common elements like headings, paragraphs, links, and images. My First HTML Page Welcome to My Website About Services Contact About Me Hello! My name is John, and I'm learning HTML. This is my first webpage. Services Here are some services I offer: Web Design Content Writing SEO Optimization Contact Me You can reach me at john@example.com. © 2023 My First Website. All rights reserved. Explanation: : Declares the document type and version of HTML (HTML5 in this case). : The root element of the HTML document. : Contains meta-information about the document, such as the character set, viewport settings, and the title. : Sets the title of the webpage, which appears in the browser tab. : Contains the visible content of the webpage. : Typically includes the website's header, such as the title and navigation menu. : Defines a navigation menu with links. : Represents the main content of the webpage. : Used to group related content. , : Headings of different levels (h1 is the highest, h6 is the lowest). : Defines a paragraph. : Embeds an image in the webpage. and : Create an unordered list and list items. : Defines a hyperlink. : Contains the footer content, such as copyright information. How to Use: Copy the code into a text editor (e.g., Notepad, VS Code). Save the file with a .html extension (e.g., index.html). Open the file in a web browser to see the result. This is a great starting point for learning HTML! You can modify the content and experiment with different tags to see how they work. I found this amazing website where you can download tons of beautiful free HTML templates to use for your study.

Feb 21, 2025 - 12:15
 0
HTML Sample Code for Beginners

Here’s a simple HTML sample code for beginners. This example includes the basic structure of an HTML document, along with some common elements like headings, paragraphs, links, and images.


 lang="en">

     charset="UTF-8">
     name="viewport" content="width=device-width, initial-scale=1.0">
    </span>My First HTML Page<span class="nt">


    
    

Welcome to My Website

id="about">

About Me

Hello! My name is John, and I'm learning HTML. This is my first webpage. src="https://via.placeholder.com/150" alt="Placeholder Image">