Skip to content
FullStackDost Logo
  • All Courses
  • Blogs
  • Login
  • Register
  • All Courses
  • Blogs
  • Login
  • Register
  • Home
  • All Courses
  • Web development
  • HTML Tutorial

HTML Tutorial

Curriculum

  • 1 Section
  • 8 Lessons
  • 2 Weeks
Expand all sectionsCollapse all sections
  • Hyper-Text Mark-up Language (HTML)
    HTML stands for Hyper Text Markup Language, which is the most widely used language on the Web to develop web pages.
    9
    • 1.1
      HTML Introduction
    • 1.2
      HTML Introduction
      10 Minutes1 Question
    • 1.3
      HTML Objective
    • 1.4
      World Wide Web
    • 1.5
      HTML Tools
    • 1.6
      HTML Terminology
    • 1.7
      HTML Document
    • 1.8
      Advantages of HTML
    • 1.9
      Dis-advantages of HTML

HTML Introduction

HTML stands for Hyper Text Markup Language, which is the most widely used language on the Web to develop web pages.

HTML was created by Berners-Lee in late 1991 but “HTML 2.0” was the first standard HTML specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in late 1999. Though the HTML 4.01 version is widely used, currently we are having the HTML-5 version which is an extension to HTML 4.01, and this version was published in 2012.


HTML Documents

All HTML documents must start with a document type declaration: <!DOCTYPE html>.

The HTML document itself begins with <html> and ends with </html>.

The visible part of the HTML document is between <body> and </body>.

Example

<!DOCTYPE html>

<html>

<body>

<h1>Heading: Welcome to FullStackDost - HTML Tutorials</h1>
<p>Paragraph: You are view a HTML page rendered on your browser. </p>

</body>
</html>

The <!DOCTYPE> Declaration

The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly.

It must only appear once, at the top of the page (before any HTML tags).

The <!DOCTYPE> declaration is not case sensitive.

The <!DOCTYPE> declaration for HTML5 is:

<!DOCTYPE html>

HTML Headings

HTML headings are defined with the <h1> to <h6> tags.

<h1> defines the most important heading. <h6> defines the least important heading:

Example

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>

 

HTML Paragraphs

HTML paragraphs are defined with the <p> tag:

Example

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

HTML Links

HTML links are defined with the <a> tag:

Example

<a href="https://www.fullstackdost.com">Link to FullStackDost</a>

The link’s destination is specified in the href attribute.

Attributes are used to provide additional information about HTML elements.

We will learn more about attributes in a later chapter.


HTML Images

HTML images are defined with the <img> tag.

The source file (src), alternative text (alt), width, and height are provided as attributes:

Example

<img src="fullstackdost.jpg" alt="fullstackdost.com" width="104" height="142">

How to View HTML Source

Have you ever seen a Web page and wondered “Hey! How did they do that?”

View HTML Source Code:

Click CTRL + U in an HTML page, or right-click on the page and select “View Page Source”. This will open a new tab containing the HTML source code of the page.

Inspect an HTML Element:

Right-click on an element (or a blank area), and choose “Inspect” to see what elements are made up of (you will see both the HTML and the CSS). You can also edit the HTML or CSS on-the-fly in the Elements or Styles panel that opens.

 

Leave a Reply Cancel reply

HTML Introduction
Next

Copyright © 2025 FullStackDost. All Rights Reserved.

Theme by ILOVEWP