SlideShare a Scribd company logo
1 of 19
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

What's hot (20)

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html
HtmlHtml
Html
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
HTML
HTMLHTML
HTML
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Creating your 1st html page
Creating your 1st html pageCreating your 1st html page
Creating your 1st html page
 
Coding
CodingCoding
Coding
 
Html ppt
Html pptHtml ppt
Html ppt
 
Html
HtmlHtml
Html
 
HTML_Slideshow1
HTML_Slideshow1HTML_Slideshow1
HTML_Slideshow1
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Hyper Text Mark-up Language
Hyper Text Mark-up Language Hyper Text Mark-up Language
Hyper Text Mark-up Language
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Html programing
Html programingHtml programing
Html programing
 
Html basic tags
Html basic tagsHtml basic tags
Html basic tags
 
Html
HtmlHtml
Html
 
HTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsHTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifits
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup Language
 

Viewers also liked

Jessie J Nobody's Perfect Analysis
Jessie J Nobody's Perfect AnalysisJessie J Nobody's Perfect Analysis
Jessie J Nobody's Perfect AnalysisMolly Dickerson
 
CV-updated-ÒÕÓ
CV-updated-ÒÕÓCV-updated-ÒÕÓ
CV-updated-ÒÕÓIlya Ganeev
 
Initiation à la phobie du dentiste
Initiation à la phobie du dentisteInitiation à la phobie du dentiste
Initiation à la phobie du dentisteRenaissanceFace
 
Application of Information Extraction techniques to pharmacological domain: E...
Application of Information Extraction techniques to pharmacological domain: E...Application of Information Extraction techniques to pharmacological domain: E...
Application of Information Extraction techniques to pharmacological domain: E...Grupo HULAT
 
Detecting Drugs and Adverse Events from Spanish Health Social Media Streams
Detecting Drugs and Adverse Events from Spanish Health Social Media StreamsDetecting Drugs and Adverse Events from Spanish Health Social Media Streams
Detecting Drugs and Adverse Events from Spanish Health Social Media StreamsGrupo HULAT
 
Media Homework Article Analysis
Media Homework Article Analysis Media Homework Article Analysis
Media Homework Article Analysis Molly Dickerson
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentationwantwushu
 
Detecting Semantic Relations between Nominals using Support Vector Machines a...
Detecting Semantic Relations between Nominals using Support Vector Machines a...Detecting Semantic Relations between Nominals using Support Vector Machines a...
Detecting Semantic Relations between Nominals using Support Vector Machines a...Grupo HULAT
 
Infrastructure is Dead - Pepijn Palmans
Infrastructure is Dead -  Pepijn PalmansInfrastructure is Dead -  Pepijn Palmans
Infrastructure is Dead - Pepijn PalmansHousingcenter
 
Monday december 8, 2014
Monday december 8, 2014Monday december 8, 2014
Monday december 8, 2014William Gerace
 
Ultra low dielectric, self-cleansing and highly oleophobic POSS-PFCP aryl eth...
Ultra low dielectric, self-cleansing and highly oleophobic POSS-PFCP aryl eth...Ultra low dielectric, self-cleansing and highly oleophobic POSS-PFCP aryl eth...
Ultra low dielectric, self-cleansing and highly oleophobic POSS-PFCP aryl eth...Babloo Sharma, Ph.D.
 
Building a Graph of Names and Contextual Patterns for Named Entity Classifica...
Building a Graph of Names and Contextual Patterns for Named Entity Classifica...Building a Graph of Names and Contextual Patterns for Named Entity Classifica...
Building a Graph of Names and Contextual Patterns for Named Entity Classifica...Grupo HULAT
 
The Citizen Card - Improving Voluntary Tax Compliance in Ghana
The Citizen Card - Improving Voluntary Tax Compliance in GhanaThe Citizen Card - Improving Voluntary Tax Compliance in Ghana
The Citizen Card - Improving Voluntary Tax Compliance in GhanaYaw Osei-Tutu
 

Viewers also liked (20)

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

Similar to An introduction to html (20)

html.pdf
html.pdfhtml.pdf
html.pdf
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html example
Html exampleHtml example
Html example
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Html
HtmlHtml
Html
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
Htmlnotes 150323102005-conversion-gate01
Htmlnotes 150323102005-conversion-gate01Htmlnotes 150323102005-conversion-gate01
Htmlnotes 150323102005-conversion-gate01
 
HTML.ppt
HTML.pptHTML.ppt
HTML.ppt
 
TagsL1.pptx
TagsL1.pptxTagsL1.pptx
TagsL1.pptx
 
Html basics
Html basicsHtml basics
Html basics
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
HTML Presentation
HTML Presentation HTML Presentation
HTML Presentation
 
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvddhtmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
 
htmlnotes Which tells about all the basic
htmlnotes Which tells about all the basichtmlnotes Which tells about all the basic
htmlnotes Which tells about all the basic
 
Html notes
Html notesHtml notes
Html notes
 
Html
HtmlHtml
Html
 

Recently uploaded

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 

Recently uploaded (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 

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>