Welcome to Day 2 of our complete HTML and Web Development series! In today's hands-on tutorial, we take your web design skills to the next level by building out a complete webpage structure in Visual Studio Code and learning how to properly embed, resize, and display images on a live web browser.
Whether you are starting from complete scratch or brushing up on fundamental front-end principles, this walkthrough guides you step by step through creating your files, generating standard boilerplate code, organizing content semantically, and integrating digital graphics seamlessly.
What You Will Learn in This Video
How to initialize an HTML project in Visual Studio Code and create your root document.
How to quickly build out the fundamental boilerplate skeleton, including character encoding, responsive viewport meta elements, and page titles.
How to introduce essential semantic layout sections including header, main, and footer elements.
How to compose page headings and introductory paragraphs cleanly.
How to embed local image files into your webpage using the image tag, source attributes, alternate description text for accessibility, and inline sizing parameters.
How to organize your project directories so your assets load reliably every time.
How to preview your working document inside modern browsers using local file execution and live server extensions.
Step-by-Step Tutorial Breakdown
1. Setting Up Your Workspace (Step 1)
Every solid web project begins with a dedicated workspace. We open Visual Studio Code, open a dedicated project folder named HTML Day 2, and generate our primary file named index.html. Standard naming conventions recommend using lowercase letters and naming your homepage index so web servers recognize it by default.
2. Constructing the Document Skeleton (Step 2)
Before placing readable text on the screen, a browser needs context. We build the base structure starting with the standard doctype declaration to tell the browser to render the page under standard HTML5 rules. Inside the document root, we split the architecture into two primary zones:
The head section: Houses metadata, UTF-8 character encoding, mobile-responsive viewport parameters, and the title that appears in the browser tab.
The body section: Houses all visible content that visitors interact with directly on the page.
3. Semantic Organization and Headings (Step 3)
A well-structured website should be legible to both human visitors and automated search engines. Rather than throwing everything into generic blocks, we structure our layout using semantic elements:
Header block: Defines introductory content or navigational elements at the top of the viewport.
Main block: Contains the primary thematic content unique to this specific page.
Footer block: Holds closing notes, copyrights, credits, or related documentation links.
Within the header, we place our primary heading level one element and supporting paragraph elements to introduce the tutorial topic: learning how to embed and showcase images.
4. Working With Text Containers (Steps 4 and 5)
Inside the main section, we add descriptive paragraphs to establish the narrative of the page. Paragraph elements provide natural spacing and clean typographical separation. Keeping your main text nestled neatly within semantic boundaries ensures that assistive technologies, such as screen readers, can interpret your page logically.
5. Inserting and Formatting Images (Step 6)
Embedding graphics brings any webpage to life. We show you how to link a local graphic asset (y.png) into your webpage via the image element. You will learn the importance of:
The source attribute (src): Directs the browser to the exact file path where your picture resides.
The alternative text attribute (alt): Provides a fallback text description if the graphic fails to load and ensures screen readers can describe the visual to visually impaired users.
Dimensions (width and height): Specifying dimension values to ensure your graphic scales neatly across your layout without overflowing the viewport.
Once our tags are in place, we save index.html, refresh the browser window, and inspect the rendered result: a sharp, centered graphic ready for any website build!
Subscribe for more coding tutorials: / @codingwithyatharth
How you search this video -
How to Add Images in HTML in Just 2 Minutes! 😱🔥
Add Image to Your Website Using HTML | Beginner Tutorial
HTML Image Tutorial 🚀 | How to Add Images to Your Website
How to Add an Image in HTML (Easy Method) 💻🔥
Learn HTML: Add Images to Your Website in Minutes!
HTML में Image कैसे Add करें? 😱 | Complete Beginner Tutorial
Website में Image कैसे लगाएं? | HTML Tutorial for Beginners 🔥
I Added an Image to My Website Using HTML! 🤯 | Easy Tutorial