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

What's hot (20)

PPTX
Introduction to HTML
selcukca84
 
PPT
HTML Introduction
c525600
 
PPT
HTML
Gouthaman V
 
PPTX
Html5 tutorial
pavankumarmangena
 
PPTX
Creating your 1st html page
Sara Corpuz
 
PPT
Coding
jgalliher24
 
PPTX
Html ppt
jaswinder01
 
PPT
HTML_Slideshow1
ldehn
 
PDF
Html tutorial
Shankar D
 
PPT
Hyper Text Mark-up Language
Fritz Earlin Therese Lapitaje Pondantes
 
PPTX
HTML (Hyper Text Markup Language)
actanimation
 
PPSX
Html programing
Namrata dutt
 
PPTX
Html basic tags
umesh patil
 
PPTX
HTML Introduction, HTML History, HTML Uses, HTML benifits
Pro Guide
 
PDF
3. tutorial html web desain
faizibra
 
PPT
HTML (Hyper Text Markup Language)
Jishan Ali
 
PPTX
HTML- Hyper Text Markup Language
Trinity Dwarka
 
Introduction to HTML
selcukca84
 
HTML Introduction
c525600
 
Html5 tutorial
pavankumarmangena
 
Creating your 1st html page
Sara Corpuz
 
Coding
jgalliher24
 
Html ppt
jaswinder01
 
HTML_Slideshow1
ldehn
 
Html tutorial
Shankar D
 
Hyper Text Mark-up Language
Fritz Earlin Therese Lapitaje Pondantes
 
HTML (Hyper Text Markup Language)
actanimation
 
Html programing
Namrata dutt
 
Html basic tags
umesh patil
 
HTML Introduction, HTML History, HTML Uses, HTML benifits
Pro Guide
 
3. tutorial html web desain
faizibra
 
HTML (Hyper Text Markup Language)
Jishan Ali
 
HTML- Hyper Text Markup Language
Trinity Dwarka
 

Viewers also liked (20)

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

Similar to An introduction to html (20)

PPTX
Html 1
pavishkumarsingh
 
PPSX
Html introduction
Dalia Elbadry
 
DOCX
Htmlnotes 150323102005-conversion-gate01
Niraj Bharambe
 
PDF
"Innovative Web Design & Development Hub
kyereernest560
 
PPTX
Html
Noha Sayed
 
PPT
Eye catching HTML BASICS tips: Learn easily
shabab shihan
 
PPTX
Introduction to HTML
Shehzad Yaqoob
 
PDF
HTML guide for beginners
Thesis Scientist Private Limited
 
PPTX
Basic Html Knowledge for students
vethics
 
PPTX
Html (hypertext markup language)
Resty Jay Galdo
 
PDF
With HTML you can create your own Web site.pdf
SMK Negeri 6 Malang
 
PDF
Module 1 - Introduction to HTML.pdf
Humphrey Humphrey
 
PPTX
FEWDD Lec 1 web development presentation
NamitSeth3
 
PPTX
HTML5 Topic 1
Juvywen
 
DOCX
HTML Notes And Some Attributes
HIFZUR RAHMAN
 
PPT
Html presantation
Adityaroy110
 
PPT
HTML.ppt
BISWARANJANSAHOO78
 
PPTX
html -Hyper Text Markup Languagejjjjjjjjjjjjjjjjjjjjjjjjj
NetajiGandi1
 
DOC
Learn html from www
alvinblue1212
 
Html introduction
Dalia Elbadry
 
Htmlnotes 150323102005-conversion-gate01
Niraj Bharambe
 
"Innovative Web Design & Development Hub
kyereernest560
 
Eye catching HTML BASICS tips: Learn easily
shabab shihan
 
Introduction to HTML
Shehzad Yaqoob
 
HTML guide for beginners
Thesis Scientist Private Limited
 
Basic Html Knowledge for students
vethics
 
Html (hypertext markup language)
Resty Jay Galdo
 
With HTML you can create your own Web site.pdf
SMK Negeri 6 Malang
 
Module 1 - Introduction to HTML.pdf
Humphrey Humphrey
 
FEWDD Lec 1 web development presentation
NamitSeth3
 
HTML5 Topic 1
Juvywen
 
HTML Notes And Some Attributes
HIFZUR RAHMAN
 
Html presantation
Adityaroy110
 
html -Hyper Text Markup Languagejjjjjjjjjjjjjjjjjjjjjjjjj
NetajiGandi1
 
Learn html from www
alvinblue1212
 
Ad

Recently uploaded (20)

PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Top 10 AI Tools, Like ChatGPT. You Must Learn In 2025
Digilearnings
 
PDF
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PDF
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
PPTX
YSPH VMOC Special Report - Measles Outbreak Southwest US 7-20-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
PPTX
LDP-2 UNIT 4 Presentation for practical.pptx
abhaypanchal2525
 
PPTX
K-Circle-Weekly-Quiz12121212-May2025.pptx
Pankaj Rodey
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PPTX
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
PPTX
ENGLISH 8 WEEK 3 Q1 - Analyzing the linguistic, historical, andor biographica...
OliverOllet
 
PPTX
Introduction to Probability(basic) .pptx
purohitanuj034
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
Top 10 AI Tools, Like ChatGPT. You Must Learn In 2025
Digilearnings
 
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 7-20-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
LDP-2 UNIT 4 Presentation for practical.pptx
abhaypanchal2525
 
K-Circle-Weekly-Quiz12121212-May2025.pptx
Pankaj Rodey
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
ENGLISH 8 WEEK 3 Q1 - Analyzing the linguistic, historical, andor biographica...
OliverOllet
 
Introduction to Probability(basic) .pptx
purohitanuj034
 

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>