SlideShare a Scribd company logo
By 
Hafiz Mohammad Kashif IUB*
 HTML is a markup language for describing web 
documents (web pages) 
 HTML stands for Hyper Text Markup Language 
 A markup language Is a set of markup tags 
 HTML document are described by HTML tags 
 Each HTML describe different document content
 A small HTML document: 
 <!DOCTYPE html> 
 <html> 
 <head> 
 <title>page Title</title> 
 </head> 
 <body> 
 <h1>My First Heading</h1> 
 <p>My first paragraph.</p> 
 </body> 
 </html>
 The DOCTYPE declaration define the document 
type to be HTML 
 The text between <html> and </html> describes an 
HTML document 
 The text between <head> and </head> provides 
information about the document 
 The text between <title> and </title> provides a title 
for a document 
 The text between <body> and </body>describe the 
visible page content
 The text between <h1> and </h1> describe a 
heading. 
 The text between <p> and </p> describes 
paragraph. Using this description, a web browser 
can display a document with a heading and a 
paragraph.
 HTML tags are keywords (tag names) surrounded 
by angle brackets: 
 <tagname> content 
 </tagname> 
 HTML tags normally come in pairs like <p> and </p> 
 The first tag in a pair is the start tag, the second tag 
is end tag. 
 The end tag is written like the start tag, but with a 
slash before the tag name
 Write HTML using Notepad or Text Edit 
 HTML can be edited by using a professional HTML 
editor like: 
 Adobe Dreamweaver 
 Microsoft Expression Web 
 CofeeCup HTML Editor 
 However, for learning HTML we recommend a text 
editor like Notepad(PC) or TextEdit(Mac) 
 We believe using a simple text editor is a good way 
to learn HTML
 Setp1: Open Notepad 
 To open Notepad in window7 or earlier: 
 Click start(Bottom left on your screen). 
 Click all programs. Click accessories. Click Notepad 
 To open Notepad in window8 or earlier: 
 Open the start screen(the symbol at the bottom left 
on your screen). 
 Type Notepad
 Step 2 Write some HTML 
 Example: 
 <!DOCTYPE html> 
 <html> 
 <body> 
 <h1>My First Heading</h1> 
 <p>My first paragraph.</p> 
 </body> 
 </html>
 Step3: Save the HTML page: 
 Save the file on your computer select file> save as in 
the Notepad menu. 
 You can use either htm or html as file extension. 
There is no difference it is up to you. 
 Step4: view HTML page in your browser: 
 Double click your saved HTML file and the result will 
look. 
 Don’t worry if these examples use tag you have not 
learned , you will learned them in the next chapter.
 All HTML documents must start with the type declaration: 
<DOCTYPE html> the HTML document itself being with 
<html> and end with </html>. 
 This visible part of the HTML document is between 
<body> and </body> 
 Example 
 <!DOCTYPE html> 
 <html> 
 <body> 
 <h1>My First Heading</h1> 
 <p>My first paragraph.</p> 
 </body> 
 </html>
 HTML heading are defined with the <h1> to <h6> 
tags: 
 <h1> this is heading </h1> 
 <h2> this is heading </h2> 
 <h3> this is heading </h3> 
 HTML paragraph are defined with the <p> and </p> 
tags: 
 <p> this is paragraph </p> 
 <p> this is another paragraph</p>
 HTML links are defined with the <a> and </a> tags: 
 <a herf =“http//www.w3schools.com”> this is a link 
</a> 
 The link is specified in the herf attribute. Attributes 
are use to provide additional information about 
HTML elements.
 HTML images are defined with the <img> tag: 
 The source file (src) alternate text (alt) and size 
(width and hight) are provides as attributes: 
 Example: 
 <img src=“w3schools.jpg” alt=“w3schools.com 
width=“104” hight=“142”>
 HTML elements are written with a start tag, wiyh an 
end tag, with the content in between 
 <tagname> content </tagname> 
 The HTML from the every thing from the start tag ro 
the end tag; 
 <p> My first HTML paragraph. </p> 
 Nested HTML elements: 
 HTML elements can be nested (elements can 
contain elements). All HTML documents consist of 
nested HTML elements 
 This example contains 4 HTML elements:
 Example: 
 <!DOCTYPE> 
 <html> 
 <body> 
 <h1>My first heading</h1> 
 <p> My first paragraph.</p> 
 </body> 
 </html>
 The <html> element defines the hole document, it 
has a start tag <html> and end tag </html>. The 
element content is another HTML element (the 
<body> element). The <body> element defines the 
document body. It has a start tag <body> and end 
tag </body>. 
 The element content is two other HTML elements 
<h1> and <p>. The <h1> element defines a heading. 
It has start tag <h1> and end tag </h1>. The element 
content is: My first Heading. The <p> element 
defines a paragraph. It has start tag <p> and end tag 
</p>. The element content is: My first paragraph.
 !Don’t Forget The End Tag: 
 Some HTML elements will display correctly, even if 
you forget the end tag: 
 Example; 
 <html> 
 <body> 
 <p>This is my first paragraph 
 <p>This is my first paragraph 
 </body> 
 </html>
An introduction to html

More Related Content

PPT
Web Fundamentals And Html Chapter 1
PPT
PDF
Intro to HTML
PDF
Html grade 11
PPTX
HTML for Education
PPTX
4 html tags
PPTX
3 first code_in_html
PPTX
Html (hyper text markup language)
Web Fundamentals And Html Chapter 1
Intro to HTML
Html grade 11
HTML for Education
4 html tags
3 first code_in_html
Html (hyper text markup language)

What's hot (20)

PPTX
Introduction to HTML
PPT
HTML Introduction
PPT
PPTX
Html5 tutorial
PPTX
Creating your 1st html page
PPT
Coding
PPTX
Html ppt
PPT
HTML_Slideshow1
PDF
Html tutorial
PPT
Hyper Text Mark-up Language
PPTX
HTML (Hyper Text Markup Language)
PPSX
Html programing
PPTX
Html basic tags
PPTX
HTML Introduction, HTML History, HTML Uses, HTML benifits
PDF
3. tutorial html web desain
PPT
HTML (Hyper Text Markup Language)
PPTX
HTML- Hyper Text Markup Language
Introduction to HTML
HTML Introduction
Html5 tutorial
Creating your 1st html page
Coding
Html ppt
HTML_Slideshow1
Html tutorial
Hyper Text Mark-up Language
HTML (Hyper Text Markup Language)
Html programing
Html basic tags
HTML Introduction, HTML History, HTML Uses, HTML benifits
3. tutorial html web desain
HTML (Hyper Text Markup Language)
HTML- Hyper Text Markup Language
Ad

Viewers also liked (20)

PPTX
Jessie J Nobody's Perfect Analysis
PPT
9. los valores
DOC
CV-updated-ÒÕÓ
PDF
Dedico Network
PPT
Compensation claim nsw
PPT
Compensation claim qld
PPT
Initiation à la phobie du dentiste
ODP
Application of Information Extraction techniques to pharmacological domain: E...
PPTX
Detecting Drugs and Adverse Events from Spanish Health Social Media Streams
PPTX
Media Homework Article Analysis
PPTX
Q4 and 5
PDF
Untitled Presentation
PPT
Detecting Semantic Relations between Nominals using Support Vector Machines a...
DOCX
Pm assignment
PDF
Infrastructure is Dead - Pepijn Palmans
PDF
Monday december 8, 2014
PDF
Ultra low dielectric, self-cleansing and highly oleophobic POSS-PFCP aryl eth...
PPT
Nsw compensation lawyers
PDF
Building a Graph of Names and Contextual Patterns for Named Entity Classifica...
PDF
The Citizen Card - Improving Voluntary Tax Compliance in Ghana
Jessie J Nobody's Perfect Analysis
9. los valores
CV-updated-ÒÕÓ
Dedico Network
Compensation claim nsw
Compensation claim qld
Initiation à la phobie du dentiste
Application of Information Extraction techniques to pharmacological domain: E...
Detecting Drugs and Adverse Events from Spanish Health Social Media Streams
Media Homework Article Analysis
Q4 and 5
Untitled Presentation
Detecting Semantic Relations between Nominals using Support Vector Machines a...
Pm assignment
Infrastructure is Dead - Pepijn Palmans
Monday december 8, 2014
Ultra low dielectric, self-cleansing and highly oleophobic POSS-PFCP aryl eth...
Nsw compensation lawyers
Building a Graph of Names and Contextual Patterns for Named Entity Classifica...
The Citizen Card - Improving Voluntary Tax Compliance in Ghana
Ad

Similar to An introduction to html (20)

PPTX
PPSX
Html introduction
DOCX
Htmlnotes 150323102005-conversion-gate01
PDF
"Innovative Web Design & Development Hub
PPTX
PPT
Eye catching HTML BASICS tips: Learn easily
PPTX
Introduction to HTML
PDF
HTML guide for beginners
PPTX
Basic Html Knowledge for students
PPTX
Html (hypertext markup language)
PDF
With HTML you can create your own Web site.pdf
PDF
Module 1 - Introduction to HTML.pdf
PPTX
FEWDD Lec 1 web development presentation
PPTX
HTML5 Topic 1
DOCX
HTML Notes And Some Attributes
PPT
Html presantation
PPT
PPTX
html -Hyper Text Markup Languagejjjjjjjjjjjjjjjjjjjjjjjjj
DOC
Learn html from www
Html introduction
Htmlnotes 150323102005-conversion-gate01
"Innovative Web Design & Development Hub
Eye catching HTML BASICS tips: Learn easily
Introduction to HTML
HTML guide for beginners
Basic Html Knowledge for students
Html (hypertext markup language)
With HTML you can create your own Web site.pdf
Module 1 - Introduction to HTML.pdf
FEWDD Lec 1 web development presentation
HTML5 Topic 1
HTML Notes And Some Attributes
Html presantation
html -Hyper Text Markup Languagejjjjjjjjjjjjjjjjjjjjjjjjj
Learn html from www

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Lesson notes of climatology university.
PDF
Classroom Observation Tools for Teachers
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Anesthesia in Laparoscopic Surgery in India
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Cell Types and Its function , kingdom of life
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Microbial disease of the cardiovascular and lymphatic systems
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
102 student loan defaulters named and shamed – Is someone you know on the list?
Final Presentation General Medicine 03-08-2024.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
RMMM.pdf make it easy to upload and study
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Microbial diseases, their pathogenesis and prophylaxis
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Lesson notes of climatology university.
Classroom Observation Tools for Teachers

An introduction to html

  • 1. By Hafiz Mohammad Kashif IUB*
  • 2.  HTML is a markup language for describing web documents (web pages)  HTML stands for Hyper Text Markup Language  A markup language Is a set of markup tags  HTML document are described by HTML tags  Each HTML describe different document content
  • 3.  A small HTML document:  <!DOCTYPE html>  <html>  <head>  <title>page Title</title>  </head>  <body>  <h1>My First Heading</h1>  <p>My first paragraph.</p>  </body>  </html>
  • 4.  The DOCTYPE declaration define the document type to be HTML  The text between <html> and </html> describes an HTML document  The text between <head> and </head> provides information about the document  The text between <title> and </title> provides a title for a document  The text between <body> and </body>describe the visible page content
  • 5.  The text between <h1> and </h1> describe a heading.  The text between <p> and </p> describes paragraph. Using this description, a web browser can display a document with a heading and a paragraph.
  • 6.  HTML tags are keywords (tag names) surrounded by angle brackets:  <tagname> content  </tagname>  HTML tags normally come in pairs like <p> and </p>  The first tag in a pair is the start tag, the second tag is end tag.  The end tag is written like the start tag, but with a slash before the tag name
  • 7.  Write HTML using Notepad or Text Edit  HTML can be edited by using a professional HTML editor like:  Adobe Dreamweaver  Microsoft Expression Web  CofeeCup HTML Editor  However, for learning HTML we recommend a text editor like Notepad(PC) or TextEdit(Mac)  We believe using a simple text editor is a good way to learn HTML
  • 8.  Setp1: Open Notepad  To open Notepad in window7 or earlier:  Click start(Bottom left on your screen).  Click all programs. Click accessories. Click Notepad  To open Notepad in window8 or earlier:  Open the start screen(the symbol at the bottom left on your screen).  Type Notepad
  • 9.  Step 2 Write some HTML  Example:  <!DOCTYPE html>  <html>  <body>  <h1>My First Heading</h1>  <p>My first paragraph.</p>  </body>  </html>
  • 10.  Step3: Save the HTML page:  Save the file on your computer select file> save as in the Notepad menu.  You can use either htm or html as file extension. There is no difference it is up to you.  Step4: view HTML page in your browser:  Double click your saved HTML file and the result will look.  Don’t worry if these examples use tag you have not learned , you will learned them in the next chapter.
  • 11.  All HTML documents must start with the type declaration: <DOCTYPE html> the HTML document itself being with <html> and end with </html>.  This visible part of the HTML document is between <body> and </body>  Example  <!DOCTYPE html>  <html>  <body>  <h1>My First Heading</h1>  <p>My first paragraph.</p>  </body>  </html>
  • 12.  HTML heading are defined with the <h1> to <h6> tags:  <h1> this is heading </h1>  <h2> this is heading </h2>  <h3> this is heading </h3>  HTML paragraph are defined with the <p> and </p> tags:  <p> this is paragraph </p>  <p> this is another paragraph</p>
  • 13.  HTML links are defined with the <a> and </a> tags:  <a herf =“http//www.w3schools.com”> this is a link </a>  The link is specified in the herf attribute. Attributes are use to provide additional information about HTML elements.
  • 14.  HTML images are defined with the <img> tag:  The source file (src) alternate text (alt) and size (width and hight) are provides as attributes:  Example:  <img src=“w3schools.jpg” alt=“w3schools.com width=“104” hight=“142”>
  • 15.  HTML elements are written with a start tag, wiyh an end tag, with the content in between  <tagname> content </tagname>  The HTML from the every thing from the start tag ro the end tag;  <p> My first HTML paragraph. </p>  Nested HTML elements:  HTML elements can be nested (elements can contain elements). All HTML documents consist of nested HTML elements  This example contains 4 HTML elements:
  • 16.  Example:  <!DOCTYPE>  <html>  <body>  <h1>My first heading</h1>  <p> My first paragraph.</p>  </body>  </html>
  • 17.  The <html> element defines the hole document, it has a start tag <html> and end tag </html>. The element content is another HTML element (the <body> element). The <body> element defines the document body. It has a start tag <body> and end tag </body>.  The element content is two other HTML elements <h1> and <p>. The <h1> element defines a heading. It has start tag <h1> and end tag </h1>. The element content is: My first Heading. The <p> element defines a paragraph. It has start tag <p> and end tag </p>. The element content is: My first paragraph.
  • 18.  !Don’t Forget The End Tag:  Some HTML elements will display correctly, even if you forget the end tag:  Example;  <html>  <body>  <p>This is my first paragraph  <p>This is my first paragraph  </body>  </html>