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 Document

•The essential tags that are required to create a HTML document are:

• <HTML>………….</HTML>

• <HEAD>………….</HEAD>

• <BODY>………….</BODY>

 HTML Tag <HTML>

•The <HTML> tag encloses all other HTML tags and associated text within your document. It is an optional tag. You can create an HTML document that omits these tags, and your browser can still read it and display it. But it is always a good form to include the start and stop tags.The format is:

•<HTML>

Your Title and Document (contains text with HTML tags) goes here

•</HTML>

Most HTML tags have two parts, an opening tag and closing tag. The closing tag is the same as the opening tag, except for the slash

mark e.g. </HTML>. The slash mark is always used in closing tags.

•<HTML>

•<HEAD>

•………….

•………….

•………….

•</HEAD>

•<BODY>

•………….

•………….

•………….

•</BODY>

•  </HTML>

 HEAD Tag <HEAD>

•HEAD tag comes after the HTML start tag. It contains TITLE tag to give the document a title that displays on the browsers title bar at the top. The Format is:

<HEAD>

<TITLE>

Your title goes here

</TITLE>

</HEAD>

Attributes used with <BODY>

•BGCOLOR:   u s e d   t o   s e t   t h e   b a c k g r o u n d   c o l o r   f o r   t h e document Example:

<BODY BGCOLOR=”yellow”>

Your document text goes here.

</BODY>

• TEXT:  used to set the color of the text of the document Example:

<BODY TEXT=”red”>Introduction to HTML:: 77

Document text changed to red color

</BODY>

Document text changed to red color

• MARGINS:  set the left hand/right hand margin of the document LEFTMARGIN: set the left hand margin of the document Example:

<BODY LEFTMARGIN=”60″>

This document is indented 60 pixels from the left hand side

of the page.

</BODY>

• TOPMARGIN: set the left hand margin of the document Example:

<BODY TOPMARGIN=”60″>

This document is indented 60 pixels from the top of the page.

</BODY>

• BACKGROUND:  It is used to point to an image file (the files with an extension  .gif,  .jpeg) that will be used as the background of the document. The image file will be tiled across the document. Example:

<BODY BACKGROUND=”filename. if”>

Your document text goes here

</BODY>

•Step-1: O p e n   t e x t   e d i t o r   N o t e p a d   ( c l i c k   o n   Star t→  A l l Programs→ Accessories Notepad)

• Step-2: Enter the following lines of code:

  <HTML>

<HEAD>

<TITLE>

My first Page

</TITLE>

</HEAD>

<BODY>

WELCOME TO MY FIRST WEB PAGE

</BODY>

 </HTML>

TEXT  TAGS

•Text tag are dividing into two categories as:

 -Character-level tags and attributes which applies to formatting of individual letters or words.

 -Paragraph level tags and attributes which apply

   =To formatting of sections of text.

•The character formatting tags are used to specify how a particular text should be displayed on the screen to distinguish certain characters within the document.

HTML Terminology
Prev
Advantages of HTML
Next

Copyright © 2025 FullStackDost. All Rights Reserved.

Theme by ILOVEWP