Skip to content
FullStackDostFullStackDostLearn · Build · Level Up
  • All Courses
  • Updates
  • My Account
  • Practice
  • Data Strcture
  • FSD
  • All Courses
  • Updates
  • My Account
  • Practice
  • Data Strcture
  • FSD
  • Home
  • Web development

HTML Tutorial 1 Section8 Lessons2 Weeks

Curriculum

  • 1 Section
  • 8 Lessons
  • 2 Weeks
Expand all sectionsCollapse all sections
  • Hyper-Text Mark-up Language (HTML)
    8 Items
    HTML stands for Hyper Text Markup Language, which is the most widely used language on the Web to develop web pages.
    • 1.1
      HTML Introduction: Your First Step into Web Development
    • 1.2
      HTML Objective
    • 1.3
      World Wide Web
    • 1.4
      HTML Tools
    • 1.5
      HTML Terminology: Tags, Elements, and Attributes
    • 1.6
      HTML Document: The Blueprint of Your First Webpage
    • 1.7
      Advantages of HTML: Why It’s Your Web Development Superpower!
    • 1.8
      HTML’s Core Purpose: When to Bring in CSS, JavaScript, and Backend Technologies

HTML Objective

Introduction to HTML: Your First Web Page

Namaste, future full-stack developers! Welcome to your very first step into the world of web development. Today, we’re diving into HTML – the backbone of every website you interact with. HTML, or HyperText Markup Language, isn’t a programming language; it’s a markup language that tells your web browser how to display content. Think of it as the blueprint for your house, defining where the walls, doors, and windows go.

In this lesson, we’ll cover the fundamental ‘objectives’ of creating a basic web page: how to set up your HTML document, structure content with headings and lists, embed images, and link to other pages. By the end, you’ll be able to craft simple, yet functional, web pages!

1. Creating, Saving, and Viewing Your HTML Document

Before we write any code, let’s understand the process of bringing an HTML file to life in your browser.

  1. Open a Text Editor: You can use a simple text editor like Notepad (Windows), TextEdit (macOS), or a more powerful code editor like VS Code (highly recommended for developers).
  2. Write Your HTML Code: We’ll get to this in the next section, but this is where you type your markup.
  3. Save the File: When saving, always use the .html or .htm extension (e.g., index.html, my-first-page.html). This tells your operating system and browser that it’s an HTML document.
  4. View in a Browser: Navigate to where you saved your file and double-click it. Your default web browser (Chrome, Firefox, Edge, Safari) will open and display your web page!

1.1 The Essential HTML Structure

Every HTML document follows a basic structure. This boilerplate code provides the necessary framework for your web page.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My First HTML Page</title>
</head>
<body>
    <!-- Your visible content goes here -->
    <h1>Hello, FullStackDost!</h1>
</body>
</html>
  • <!DOCTYPE html>: This declaration defines the document type and version of HTML (HTML5 in this case). It must be the very first thing in your HTML document.
  • <html lang="en">: This is the root element of an HTML page. The lang="en" attribute specifies the primary language of the document, which is good for accessibility and search engines.
  • <head>: This section contains meta-information about the HTML document, such as its title, character set, links to stylesheets, and other metadata not visible on the page itself.
    • <meta charset="UTF-8">: Specifies the character encoding for the document, ensuring proper display of various characters.
    • <meta name="viewport" content="width=device-width, initial-scale=1.0">: Crucial for responsive web design, ensuring your page looks good on different devices.
    • <title>My First HTML Page</title>: Sets the title that appears in the browser tab or window title bar.
  • <body>: This section contains all the visible content of your web page, including text, images, links, videos, and more.

2. Formatting with Section Heading Tags

Headings are vital for structuring your content, making it readable for both users and search engines. HTML provides six levels of headings, from <h1> (most important) to <h6> (least important).

<body>
    <h1>Welcome to My Profile Page</h1>
    <h2>About Me</h2>
    <p>I am a passionate learner on the journey to become a full-stack developer.</p>
    <h3>My Hobbies</h3>
    <h4>Coding</h4>
    <h5>Reading</h5>
    <h6>Gaming</h6>
</body>

Pro Tip: Use headings semantically. <h1> should typically be used once per page for the main title, and subsequent headings should follow a logical hierarchy, just like an outline in a book.

3. Organizing Content with Lists

Lists are perfect for presenting information in an organized, easy-to-read format. HTML offers two main types:

3.1 Unordered Lists (<ul>)

Unordered lists display items with bullet points. They are created using the <ul> tag, and each list item is enclosed within an <li> tag.

<h2>My Favorite Hobbies</h2>
<ul>
    <li>Learning Full-Stack Development</li>
    <li>Playing Cricket</li>
    <li>Exploring New Technologies</li>
</ul>

3.2 Ordered Lists (<ol>)

Ordered lists display items with numbers or letters, indicating a sequence or ranking. They are created with the <ol> tag, and each item uses the <li> tag.

<h2>My Top 3 Programming Languages to Learn</h2>
<ol>
    <li>JavaScript</li>
    <li>Python</li>
    <li>Java</li>
</ol>

4. Adding Graphics: Images in HTML

A picture is worth a thousand words! Images make your web pages more engaging. The <img> tag is used to embed an image. It’s a self-closing tag, meaning it doesn’t have a separate closing tag.

<h2>My Profile Picture</h2>
<img src="profile.jpg" alt="A friendly person learning full-stack development" width="200" height="200">
  • src (source): This attribute specifies the path to the image file. It can be a relative path (e.g., profile.jpg if in the same folder) or an absolute URL (e.g., https://example.com/images/profile.jpg).
  • alt (alternative text): This is crucial! It provides a textual description of the image for screen readers (for visually impaired users), when the image fails to load, or for search engines. Always include a descriptive alt attribute.
  • width and height: These attributes specify the dimensions of the image in pixels. While you can use them, it’s generally better practice to control image sizing with CSS for more flexibility.

5. Navigating with Hypertext Links

Links are what make the web, well, the web! They allow users to navigate between pages, documents, or even different sections of the same page. The <a> tag (anchor tag) is used to create a hyperlink.

<h2>Connect with Me</h2>
<p>Visit my <a href="https://www.linkedin.com/in/fullstackdost/" target="_blank">LinkedIn Profile</a> for more updates.</p>

<h3>Image Link Example</h3<
<a href="https://fullstackdost.com" target="_blank">
    <img src="logo.png" alt="FullStackDost Logo" width="150">
</a>
  • href (hypertext reference): This attribute specifies the destination URL or path that the link points to.
  • target="_blank": This attribute tells the browser to open the linked document in a new tab or window. If omitted, the link will open in the current tab.
  • Linking Text: Simply place the text you want to be clickable between the opening and closing <a> tags.
  • Linking Images: You can also wrap an <img> tag inside an <a> tag to make the image clickable.

Practice Exercise: Build Your First HTML Profile Page!

It’s time to put your new HTML skills into action! Create a new HTML file called my_profile.html and build a simple personal profile page that includes the following:

  1. Basic HTML Structure: Start with the <!DOCTYPE html>, <html>, <head>, and <body> tags.
  2. Page Title: Set the <title> to “My FullStackDost Profile”.
  3. Main Heading: Add an <h1> with your name (e.g., “John Doe’s Profile”).
  4. About Me Section: Include an <h2> for “About Me” and a paragraph (<p>) describing yourself briefly.
  5. Skills List: Create an ordered list (<ol>) of 3-5 technical skills you’re learning or interested in (e.g., HTML, CSS, JavaScript).
  6. Hobbies List: Create an unordered list (<ul>) of 3-5 personal hobbies or interests.
  7. Profile Image: Embed an image (it can be a placeholder image from a site like Picsum or a local image) using the <img> tag. Make sure to include a descriptive alt attribute and set width/height.
  8. Social Media Link: Add a paragraph with a link (<a>) to your LinkedIn profile, GitHub, or any other social media. Make sure it opens in a new tab!

Save your file and open it in your browser. Congratulations, you’ve just built your first structured web page!

Summary

Fantastic work today! You’ve learned the essential building blocks of any web page:

  • How to create, save, and view an HTML document.
  • The fundamental structure of an HTML page, including <head> and <body>.
  • Using <h1> to <h6> for semantic headings.
  • Organizing content with <ul> (unordered) and <ol> (ordered) lists.
  • Embedding images using the <img> tag with src and the crucial alt attribute.
  • Creating hyperlinks with the <a> tag and the href attribute.

These elements are the foundation upon which all web content is built. Keep practicing, and soon you’ll be building much more complex and interactive web experiences. Keep learning, keep growing, and I’ll see you in the next lesson!

Leave a Reply Cancel reply

You must be logged in to post a comment.

HTML Introduction: Your First Step into Web Development
Prev
World Wide Web
Next

Copyright © 2026 FullStackDost. All Rights Reserved.

  • Privacy Policy
  • Terms of Service
  • Contact Support

Powered by EduPress