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:
Let’s begin our journey!
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.
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.
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.
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.

Every HTML document follows a fundamental structure. Let’s break down the essential parts:
<!DOCTYPE html> DeclarationThis 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.
<html> ElementThis 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.
<head> ElementThe <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.
<body> ElementThis 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.
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.Now that you know the basic structure, let’s explore some fundamental HTML elements you’ll use constantly.
<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>
<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>
<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.
<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>

Ever wondered how other websites create their beautiful layouts or interesting features? You can peek behind the curtain!
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.
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!).
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:
<!DOCTYPE html>, <html>, <head>, <body>).<body>, add an <h1> heading: "My Personal Introduction".<h1>, add a paragraph (<p>) introducing yourself briefly.<h2> heading: "My Hobbies".<a>) to your favorite website (use href="https://example.com" if you don’t have one). Make the link text "Visit my favorite site".<img>). You can use a placeholder image URL like https://via.placeholder.com/150 and set appropriate alt, width, and height attributes.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!