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 Introduction: Your First Step into Web Development

Introduction: Welcome to the World of Web Development!

Namaste and welcome to FullStackDost! Are you ready to take your first exciting step into the world of web development? Every amazing website, from simple blogs to complex e-commerce platforms, starts with a fundamental building block: HTML. In this lesson, we’ll demystify HTML, understand its core purpose, and get you ready to write your very first web page.

By the end of this lesson, you’ll be able to:

  • Understand what HTML is and its role in web development.
  • Identify the basic structure of any HTML document.
  • Use essential HTML elements like headings, paragraphs, links, and images.
  • View the source code of any web page.

Let’s begin our journey!

What is HTML? The Web’s Blueprint

HTML stands for HyperText Markup Language. It’s not a programming language, but rather a markup language used to structure content on the web. Think of it as the skeleton or blueprint of your web page. It tells the browser what each piece of content is: a heading, a paragraph, an image, a link, and so on.

HyperText

This refers to the links that connect web pages to one another, both within a single website and between different websites. It’s the "web" in World Wide Web.

Markup

HTML uses "markup tags" to define the structure and content of a web page. These tags wrap around text and other content to indicate their meaning and purpose. For example, <p> marks a paragraph, and <img> inserts an image.

Language

HTML has its own syntax and rules that browsers understand and use to render web pages correctly.

HTML was first developed by Tim Berners-Lee in the early 1990s. While many versions have come and gone, the most widely used and modern version today is HTML5, published in 2012. We’ll be focusing on HTML5 throughout this course, as it’s the standard for modern web development.

Diagram showing HTML as the structure, CSS as the style, and JavaScript as the interactivity
EduPress Theme Suggestion: A clean, modern diagram illustrating HTML as the ‘structure’, CSS as ‘style’, and JavaScript as ‘interactivity’, perhaps with a house or human body analogy.

The Basic Structure of an HTML Document

Every HTML document follows a fundamental structure. Let’s break down the essential parts:

1. The <!DOCTYPE html> Declaration

This declaration is always the very first line of your HTML document. It tells the browser which version of HTML the page is written in. For HTML5, it’s simply <!DOCTYPE html>. It’s not an HTML tag itself, but an instruction to the browser.

2. The <html> Element

This is the root element of every HTML page. All other HTML elements are nested inside it. It signifies the beginning and end of the HTML document.

3. The <head> Element

The <head> element contains metadata about the HTML document, such as its title (which appears in the browser tab), links to stylesheets (CSS), and scripts (JavaScript). Content inside the <head> is NOT displayed on the web page itself.

4. The <body> Element

This is where all the visible content of your web page goes! Everything you see on a website – text, images, videos, links – is placed within the <body> tags.

Putting It All Together: Your First HTML Page

Let’s look at a complete basic HTML 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 FullStackDost Page</title>
</head>
<body>
    <h1>Welcome to FullStackDost!</h1>
    <p>This is my very first web page using HTML.</p>
    <p>Learning web development is fun!</p>
</body>
</html>

Explanation:

  • <!DOCTYPE html>: Declares this as an HTML5 document.
  • <html lang="en">: The root element, specifying the document’s language as English.
  • <head>: Contains non-visible information for the browser and search engines.
  • <meta charset="UTF-8">: Sets the character encoding, crucial for displaying all types of characters correctly.
  • <meta name="viewport" content="width=device-width, initial-scale=1.0">: Essential for responsive design, ensuring the page looks good on various devices.
  • <title>My First FullStackDost Page</title>: The title that appears in the browser tab.
  • <body>: Contains all the visible content.
  • <h1>Welcome to FullStackDost!</h1>: A main heading.
  • <p>This is my very first web page using HTML.</p>: A paragraph of text.

Essential HTML Elements for Beginners

Now that you know the basic structure, let’s explore some fundamental HTML elements you’ll use constantly.

1. Headings (<h1> to <h6>)

Headings are used to define titles and subtitles on your web page. <h1> is the most important (main title), and <h6> is the least important. Use them to structure your content logically.

<h1>This is a Main Heading (H1)</h1>
<h2>This is a Section Title (H2)</h2&n>
<h3>This is a Sub-section Title (H3)</h3>
<h4>Smaller Heading (H4)</h4>
<h5>Even Smaller (H5)</h5>
<h6>Least Important (H6)</h6>

2. Paragraphs (<p>)

Paragraphs are used to display blocks of text. Each <p> tag creates a new paragraph, usually with some space above and below it.

<p>This is the first paragraph of text on our web page. It contains some important information for our readers.</p>
<p>This is a second paragraph. Notice how the browser automatically adds a line break and some spacing between paragraphs.</p>

3. Links (<a>)

Links (or hyperlinks) are what make the web a "web"! They allow users to navigate between pages. The <a> (anchor) tag is used to create a link, and its destination is specified using the href attribute.

What are Attributes? Attributes provide additional information about HTML elements. They are always specified in the start tag and usually come in name/value pairs like name="value".

<p>Visit the amazing <a href="https://www.fullstackdost.com">FullStackDost website</a> for more tutorials!</p>
<p>You can also check out our <a href="/courses/html-tutorial">HTML Tutorial Course</a> here.</p>

In the example above, href="https://www.fullstackdost.com" is an attribute that specifies the URL the link points to.

4. Images (<img>)

Images add visual appeal to your web pages. The <img> tag is used to embed an image. It’s a self-closing tag (it doesn’t have a separate closing tag like </img>). It requires several important attributes:

  • src: Specifies the path to the image file (source).
  • alt: Provides "alternative text" for the image. This text is displayed if the image cannot be loaded, and it’s crucial for accessibility (screen readers for visually impaired users) and SEO.
  • width and height: Define the dimensions of the image in pixels.
<img src="/wp-content/uploads/2023/04/fullstackdost-logo.png" alt="FullStackDost Logo" width="150" height="auto">
<p>This is our brand logo!</p>
Screenshot of a code editor showing basic HTML code
EduPress Theme Suggestion: A screenshot of a VS Code editor displaying the basic HTML structure, highlighting tags and attributes with syntax coloring.

Viewing Your HTML Source: The Web Developer’s Secret Weapon

Ever wondered how other websites create their beautiful layouts or interesting features? You can peek behind the curtain!

1. View Page Source (Ctrl + U or Right-click > View Page Source)

This will open a new tab displaying the raw HTML code that the browser received from the server. It’s a great way to see the complete structure of a page.

2. Inspect Element (Right-click > Inspect)

This is an incredibly powerful tool found in all modern browsers (like Chrome, Firefox, Edge). When you right-click on a specific element on a page and select "Inspect," it opens the browser’s developer tools, showing you the HTML and CSS for that particular element. You can even edit the HTML/CSS live in the browser to experiment (don’t worry, it only changes it for you locally, not for everyone else!).

Practice Exercise: Build Your First Mini-Page!

It’s time to get your hands dirty! Open a simple text editor (like Notepad on Windows, TextEdit on Mac, or ideally, a code editor like VS Code) and create a new file named myfirstpage.html. Then, try to implement the following:

  1. Start with the basic HTML5 document structure (<!DOCTYPE html>, <html>, <head>, <body>).
  2. Set the page title to "My Awesome Page by [Your Name]".
  3. Inside the <body>, add an <h1> heading: "My Personal Introduction".
  4. Below the <h1>, add a paragraph (<p>) introducing yourself briefly.
  5. Add an <h2> heading: "My Hobbies".
  6. Add another paragraph listing a few of your hobbies.
  7. Include a link (<a>) to your favorite website (use href="https://example.com" if you don’t have one). Make the link text "Visit my favorite site".
  8. Add an image (<img>). You can use a placeholder image URL like https://via.placeholder.com/150 and set appropriate alt, width, and height attributes.
  9. Save your file and open it in your web browser. See your creation come to life!

Summary: You’re Now an HTML Beginner!

Congratulations! You’ve just taken your first significant step into the world of web development. You now understand that HTML is the backbone of every web page, providing structure and meaning to content. You’ve learned about the essential document structure, common elements like headings, paragraphs, links, and images, and even how to inspect web pages like a pro.

This is just the beginning. In upcoming lessons, we’ll dive deeper into more HTML elements, learn about attributes, and soon, start styling our pages with CSS. Keep practicing, and we’ll see you in the next lesson!

Leave a Reply Cancel reply

You must be logged in to post a comment.

HTML Objective
Next

Copyright © 2026 FullStackDost. All Rights Reserved.

  • Privacy Policy
  • Terms of Service
  • Contact Support

Powered by EduPress