SlideShare a Scribd company logo
3
Most read
4
Most read
14
Most read
Introduction to HTML
Mr. Mubashir Ali
Lecturer (Dept. of Computer Science)
dr.mubashirali1@gmail.com
1
Lecture 03
Outline
• Introduction to HTML
• Basic Structure of a HTML page
• Text formatting tags in HTML
• Lists in HTML
2
Mubashir Ali - Lecturer (Department of
Computer Science)
• HTML – Hyper-Text Markup Language – The
Language of Web Pages on the World Wide
Web
• It defines the structure of webpages and
determines how data is displayed online
• HTML is a text formatting language
• Is a set of special instructions that can be
added in the text to add formatting and
linking information
• Is directly interpreted by the browser
3
Mubashir Ali - Lecturer (Department of
Computer Science)
1. Introduction to HTML…
• Hypertext:
– Allows for non-linear linking to other documents
• Markup Language:
– Content is “marked up” or tagged to tell the
browser how to display it
• HTML standards are developed under the
authority of the World Wide Web Consortium
(W3C), headed by Tim Lee
– http://www.w3c.org
4
Mubashir Ali - Lecturer (Department of
Computer Science)
1. Introduction to HTML…
• HTML was created in 1991 by Tim Berners-Lee at
CERN in Switzerland
• It was designed to allow scientists to display and
share their research
• 1995- HTML 2
• lots of browsers had added their own bits to
HTML
• Dan Connolly and colleagues collected all the
HTML tags that were widely used and collated
them into a draft document
5
Mubashir Ali - Lecturer (Department of
Computer Science)
1. Introduction to HTML…
• 1997- HTML 3.2
• It was the first version developed and
standardized exclusively by the W3C
• HTML 3.2 included the support for applets, text
flow around images, subscripts and superscripts
etc
• 1999 – HTML 4.1
• extends HTML with mechanisms for style sheets,
scripting, frames etc.
• HTML5
6
Mubashir Ali - Lecturer (Department of
Computer Science)
1. Introduction to HTML…
• HTML Tags:
• Tags are instruction that are directly embedded
into the text of the document
• Is a signal to a browser to do something before
just throwing text on the screen
• Begin with open angle bracket < and ends with
close angle bracket >
– For example <HTML>
• Paired Tags : <HTML> </HTML>
• Singular Tags: <BR>
7
Mubashir Ali - Lecturer (Department of
Computer Science)
1. Introduction to HTML…
• HTML is not case-sensitive
• multiple spaces will appear as a single space
• Blank and new lines are ignored
• <!-- comments -- >
• HTML files have .html extension
8
Mubashir Ali - Lecturer (Department of
Computer Science)
1. Introduction to HTML…
• The entire web page is enclosed within <HTML>
and </HTML>
• Within these tags two distinct sections are
created head and body
• Head: <HEAD>
<TITLE> …… </TITLE>
</HEAD>
. Body: indicate the start and end of main body of
textual information
<BODY>
</BODY>
9
Mubashir Ali - Lecturer (Department of
Computer Science)
2. Structure of HTML Page
10
Mubashir Ali - Lecturer (Department of
Computer Science)
2. Structure of HTML Page…
• First HTML page:
Attributes:
• BGCOLOR: Change the background color
• BACKGROUND: Place an image at background
• TEXT: Change the color of the body text
Example:
• <BODY BGCOLOR=123345 TEXT=Red>
• <BODY BACKGROUND=“img.jpg” TEXT=Red>
11
Mubashir Ali - Lecturer (Department of
Computer Science)
3. The BODY Tag
12
Mubashir Ali - Lecturer (Department of
Computer Science)
4. Formatting text
Formatting Text…...
13
Mubashir Ali - Lecturer (Department of
Computer Science)
• <P>….. </p>: starts a new paragraph
• Align (left, right, center and justify)
• <BR>: gives an one line break
• <H1> ….. </H1>: heading
• <HR>: draws horizontal line
• ALIGN (LEFT,CENTER,RIGHT)
• SIZE=2
• WIDTH=100%
• color
• Text Styles:
• <B> …. </B> , <I> …. </I>, <U> …. </U>
14
Mubashir Ali - Lecturer (Department of
Computer Science)
4. Formatting text…
• <CENTER>….</CENTER>
• <FONT>……</FONT>
– FONTFACE: Sets the specified font name
– SIZE: Size of the text (between 1 and 7)
– COLOR: Set the color of the text
• Example:
– <FONT FONTFACE=“COMIC SANS MS” SIZE=6 COLOR=RED>
Welcome</FONT>
15
Mubashir Ali - Lecturer (Department of
Computer Science)
4. Formatting text…
• Un-ordered Lists:
– Starting Tag <UL>, Ending Tag </UL>
– List Items <LI>
– Type (FILLROUND, SQUARE)
• Ordered Lists:
– Starting Tag <OL>, Ending Tag </OL>
– List Items <LI>
– Type (“1”, “A”, ‘”a”, ”I”, ”i”)
– Start (Alerts the numbering Sequence)
– Value (Changes the number sequence in the middle of
an ordered list)
16
Mubashir Ali - Lecturer (Department of
Computer Science)
5. Lists in HTML
• Definition Lists:
– Starting Tag<DL>
– Ending Tag </DL>
– Definition Term <DT>
– Definition Description <DD>
17
Mubashir Ali - Lecturer (Department of
Computer Science)
5. Lists in HTML…
• What is HTML?
• Basic Structure of HTML page
• Body tag attributes
• Text formatting tags
• Lists
18
Mubashir Ali - Lecturer (Department of
Computer Science)
Summary
• Chapter 1, Beginning HTML, XHTML,CSS,
and JavaScript, by Jon Duckett, Wiley
Publishing; 2009, ISBN: 978-0-470-
54070-1.
• http://www.w3schools.com/html
19
Mubashir Ali - Lecturer (Department of
Computer Science)
References

More Related Content

What's hot (20)

PPTX
HTML-(workshop)7557.pptx
Raja980775
 
PPTX
html-table
Dhirendra Chauhan
 
PPTX
Basic HTML
Sayan De
 
PPTX
Html links
JayjZens
 
PPTX
Html
yugank_gupta
 
PDF
Introduction to html
eShikshak
 
PPTX
Html form tag
shreyachougule
 
PPT
Css Ppt
Hema Prasanth
 
PPTX
HTML Introduction
Hameda Hurmat
 
PPS
Web Site Design Principles
Mukesh Tekwani
 
PPT
Web Development using HTML & CSS
Shashank Skills Academy
 
PPTX
Html Basic Tags
Richa Singh
 
PPTX
HTML, CSS and Java Scripts Basics
Sun Technlogies
 
PPTX
Html and css
Samiksha Pun
 
PPT
Hyperlinks in HTML
Aarti P
 
PPT
Introduction to c#
OpenSource Technologies Pvt. Ltd.
 
PPT
CSS Basics
WordPress Memphis
 
PPT
cascading style sheet ppt
abhilashagupta
 
HTML-(workshop)7557.pptx
Raja980775
 
html-table
Dhirendra Chauhan
 
Basic HTML
Sayan De
 
Html links
JayjZens
 
Introduction to html
eShikshak
 
Html form tag
shreyachougule
 
Css Ppt
Hema Prasanth
 
HTML Introduction
Hameda Hurmat
 
Web Site Design Principles
Mukesh Tekwani
 
Web Development using HTML & CSS
Shashank Skills Academy
 
Html Basic Tags
Richa Singh
 
HTML, CSS and Java Scripts Basics
Sun Technlogies
 
Html and css
Samiksha Pun
 
Hyperlinks in HTML
Aarti P
 
CSS Basics
WordPress Memphis
 
cascading style sheet ppt
abhilashagupta
 

Similar to Lecture-3: Introduction to html - Basic Structure & Block Building (20)

PDF
HTML-Part1
Ahmed Saihood
 
PPTX
This slides helps a lot to learn about html tags.
Bangladesh Army University of Engineering and Technology
 
PPTX
Ifi7174 lesson1
Sónia
 
PPT
Uta005 lecture2
vinay arora
 
PPT
Intro to HTML5
Vlad Posea
 
PPT
Static web documents
bhashwitha kolluri
 
PPTX
HTML Coding #01 : Don't Fear the Code
Michael Sturgeon
 
PPT
Creating WebPages using HTML
Mohammad Arshad
 
PPTX
Web Design and Programming-Lab-4-HTML-II-Exercise
RafsanJani65
 
PPTX
Introduction to (x)html
Er. Nawaraj Bhandari
 
PPTX
Unit_II.pptx thtrhththtrhjjuyujymkfhtyhkmythkymkykymnkmyjnmyjmnykn
PriyanshuGarg59
 
PPT
Html book2
Diksha Garg
 
PDF
3.web Technology and sub topics for computer applications
Omkar990719
 
PPTX
abhishek.pptx On HTML and CSS for mini project b tech
jairamji1536
 
PPTX
HTML.pptx
vanajaanbarasu
 
PPSX
HTML & XHTML Basics
Hossein Zahed
 
PDF
2a web technology html basics 1
Jyoti Yadav
 
PPTX
All About HTML Web Development and its fundamentals
BzbbBryanBasco
 
HTML-Part1
Ahmed Saihood
 
This slides helps a lot to learn about html tags.
Bangladesh Army University of Engineering and Technology
 
Ifi7174 lesson1
Sónia
 
Uta005 lecture2
vinay arora
 
Intro to HTML5
Vlad Posea
 
Static web documents
bhashwitha kolluri
 
HTML Coding #01 : Don't Fear the Code
Michael Sturgeon
 
Creating WebPages using HTML
Mohammad Arshad
 
Web Design and Programming-Lab-4-HTML-II-Exercise
RafsanJani65
 
Introduction to (x)html
Er. Nawaraj Bhandari
 
Unit_II.pptx thtrhththtrhjjuyujymkfhtyhkmythkymkykymnkmyjnmyjmnykn
PriyanshuGarg59
 
Html book2
Diksha Garg
 
3.web Technology and sub topics for computer applications
Omkar990719
 
abhishek.pptx On HTML and CSS for mini project b tech
jairamji1536
 
HTML.pptx
vanajaanbarasu
 
HTML & XHTML Basics
Hossein Zahed
 
2a web technology html basics 1
Jyoti Yadav
 
All About HTML Web Development and its fundamentals
BzbbBryanBasco
 
Ad

More from Mubashir Ali (20)

PDF
Lecture-3: Traditional Approaches to System Development and Enterprise Engine...
Mubashir Ali
 
PDF
Lecture-2: Zachman Framework for Enterprise Architecture
Mubashir Ali
 
PDF
Lecture-2: Web development application development process model
Mubashir Ali
 
PDF
Lecture-1: Introduction to web engineering - course overview and grading scheme
Mubashir Ali
 
PDF
Lecture-1: Introduction to system integration and architecture - course overv...
Mubashir Ali
 
PDF
Lecture-7: World Wide Web (WWW) & ECommerce
Mubashir Ali
 
PDF
Lecture-6: The Internet
Mubashir Ali
 
PDF
Lecture-5: Introduction to Networks & Data Communication
Mubashir Ali
 
PDF
Lecture-4: Introduction to Programming & Databases
Mubashir Ali
 
PDF
Lecture-3: Operating System & Application Softwares
Mubashir Ali
 
PDF
Lecture-2(2): Number System & Conversion
Mubashir Ali
 
PDF
Lecture-2(1): Computer Hardware & System Components
Mubashir Ali
 
PDF
Lecture-1: Introduction to Computer - Basic Definitions & Concepts- Computer ...
Mubashir Ali
 
PDF
Software Matrics (Product - Process - Resource - Matrics) - (LOC, FP, Complex...
Mubashir Ali
 
PDF
Lect-6&7: Network Diagrams, PERT and CPM
Mubashir Ali
 
PDF
Lect-5: Work Breakdown Structure and Project Cost Estimation
Mubashir Ali
 
PDF
Lect-4: Software Development Life Cycle Model - SPM
Mubashir Ali
 
PDF
Lect-4: UML diagrams - Unified Modeling Language - SPM
Mubashir Ali
 
PDF
Lect-3: Statement of Work - Write effective SOW for Software Project - Template
Mubashir Ali
 
PDF
Lect-2: Overview and Traditional SPM, Classic mistakes
Mubashir Ali
 
Lecture-3: Traditional Approaches to System Development and Enterprise Engine...
Mubashir Ali
 
Lecture-2: Zachman Framework for Enterprise Architecture
Mubashir Ali
 
Lecture-2: Web development application development process model
Mubashir Ali
 
Lecture-1: Introduction to web engineering - course overview and grading scheme
Mubashir Ali
 
Lecture-1: Introduction to system integration and architecture - course overv...
Mubashir Ali
 
Lecture-7: World Wide Web (WWW) & ECommerce
Mubashir Ali
 
Lecture-6: The Internet
Mubashir Ali
 
Lecture-5: Introduction to Networks & Data Communication
Mubashir Ali
 
Lecture-4: Introduction to Programming & Databases
Mubashir Ali
 
Lecture-3: Operating System & Application Softwares
Mubashir Ali
 
Lecture-2(2): Number System & Conversion
Mubashir Ali
 
Lecture-2(1): Computer Hardware & System Components
Mubashir Ali
 
Lecture-1: Introduction to Computer - Basic Definitions & Concepts- Computer ...
Mubashir Ali
 
Software Matrics (Product - Process - Resource - Matrics) - (LOC, FP, Complex...
Mubashir Ali
 
Lect-6&7: Network Diagrams, PERT and CPM
Mubashir Ali
 
Lect-5: Work Breakdown Structure and Project Cost Estimation
Mubashir Ali
 
Lect-4: Software Development Life Cycle Model - SPM
Mubashir Ali
 
Lect-4: UML diagrams - Unified Modeling Language - SPM
Mubashir Ali
 
Lect-3: Statement of Work - Write effective SOW for Software Project - Template
Mubashir Ali
 
Lect-2: Overview and Traditional SPM, Classic mistakes
Mubashir Ali
 
Ad

Recently uploaded (20)

PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
Dimensions of Societal Planning in Commonism
StefanMz
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 

Lecture-3: Introduction to html - Basic Structure & Block Building

  • 1. Introduction to HTML Mr. Mubashir Ali Lecturer (Dept. of Computer Science) [email protected] 1 Lecture 03
  • 2. Outline • Introduction to HTML • Basic Structure of a HTML page • Text formatting tags in HTML • Lists in HTML 2 Mubashir Ali - Lecturer (Department of Computer Science)
  • 3. • HTML – Hyper-Text Markup Language – The Language of Web Pages on the World Wide Web • It defines the structure of webpages and determines how data is displayed online • HTML is a text formatting language • Is a set of special instructions that can be added in the text to add formatting and linking information • Is directly interpreted by the browser 3 Mubashir Ali - Lecturer (Department of Computer Science) 1. Introduction to HTML…
  • 4. • Hypertext: – Allows for non-linear linking to other documents • Markup Language: – Content is “marked up” or tagged to tell the browser how to display it • HTML standards are developed under the authority of the World Wide Web Consortium (W3C), headed by Tim Lee – http://www.w3c.org 4 Mubashir Ali - Lecturer (Department of Computer Science) 1. Introduction to HTML…
  • 5. • HTML was created in 1991 by Tim Berners-Lee at CERN in Switzerland • It was designed to allow scientists to display and share their research • 1995- HTML 2 • lots of browsers had added their own bits to HTML • Dan Connolly and colleagues collected all the HTML tags that were widely used and collated them into a draft document 5 Mubashir Ali - Lecturer (Department of Computer Science) 1. Introduction to HTML…
  • 6. • 1997- HTML 3.2 • It was the first version developed and standardized exclusively by the W3C • HTML 3.2 included the support for applets, text flow around images, subscripts and superscripts etc • 1999 – HTML 4.1 • extends HTML with mechanisms for style sheets, scripting, frames etc. • HTML5 6 Mubashir Ali - Lecturer (Department of Computer Science) 1. Introduction to HTML…
  • 7. • HTML Tags: • Tags are instruction that are directly embedded into the text of the document • Is a signal to a browser to do something before just throwing text on the screen • Begin with open angle bracket < and ends with close angle bracket > – For example <HTML> • Paired Tags : <HTML> </HTML> • Singular Tags: <BR> 7 Mubashir Ali - Lecturer (Department of Computer Science) 1. Introduction to HTML…
  • 8. • HTML is not case-sensitive • multiple spaces will appear as a single space • Blank and new lines are ignored • <!-- comments -- > • HTML files have .html extension 8 Mubashir Ali - Lecturer (Department of Computer Science) 1. Introduction to HTML…
  • 9. • The entire web page is enclosed within <HTML> and </HTML> • Within these tags two distinct sections are created head and body • Head: <HEAD> <TITLE> …… </TITLE> </HEAD> . Body: indicate the start and end of main body of textual information <BODY> </BODY> 9 Mubashir Ali - Lecturer (Department of Computer Science) 2. Structure of HTML Page
  • 10. 10 Mubashir Ali - Lecturer (Department of Computer Science) 2. Structure of HTML Page… • First HTML page:
  • 11. Attributes: • BGCOLOR: Change the background color • BACKGROUND: Place an image at background • TEXT: Change the color of the body text Example: • <BODY BGCOLOR=123345 TEXT=Red> • <BODY BACKGROUND=“img.jpg” TEXT=Red> 11 Mubashir Ali - Lecturer (Department of Computer Science) 3. The BODY Tag
  • 12. 12 Mubashir Ali - Lecturer (Department of Computer Science) 4. Formatting text
  • 13. Formatting Text…... 13 Mubashir Ali - Lecturer (Department of Computer Science)
  • 14. • <P>….. </p>: starts a new paragraph • Align (left, right, center and justify) • <BR>: gives an one line break • <H1> ….. </H1>: heading • <HR>: draws horizontal line • ALIGN (LEFT,CENTER,RIGHT) • SIZE=2 • WIDTH=100% • color • Text Styles: • <B> …. </B> , <I> …. </I>, <U> …. </U> 14 Mubashir Ali - Lecturer (Department of Computer Science) 4. Formatting text…
  • 15. • <CENTER>….</CENTER> • <FONT>……</FONT> – FONTFACE: Sets the specified font name – SIZE: Size of the text (between 1 and 7) – COLOR: Set the color of the text • Example: – <FONT FONTFACE=“COMIC SANS MS” SIZE=6 COLOR=RED> Welcome</FONT> 15 Mubashir Ali - Lecturer (Department of Computer Science) 4. Formatting text…
  • 16. • Un-ordered Lists: – Starting Tag <UL>, Ending Tag </UL> – List Items <LI> – Type (FILLROUND, SQUARE) • Ordered Lists: – Starting Tag <OL>, Ending Tag </OL> – List Items <LI> – Type (“1”, “A”, ‘”a”, ”I”, ”i”) – Start (Alerts the numbering Sequence) – Value (Changes the number sequence in the middle of an ordered list) 16 Mubashir Ali - Lecturer (Department of Computer Science) 5. Lists in HTML
  • 17. • Definition Lists: – Starting Tag<DL> – Ending Tag </DL> – Definition Term <DT> – Definition Description <DD> 17 Mubashir Ali - Lecturer (Department of Computer Science) 5. Lists in HTML…
  • 18. • What is HTML? • Basic Structure of HTML page • Body tag attributes • Text formatting tags • Lists 18 Mubashir Ali - Lecturer (Department of Computer Science) Summary
  • 19. • Chapter 1, Beginning HTML, XHTML,CSS, and JavaScript, by Jon Duckett, Wiley Publishing; 2009, ISBN: 978-0-470- 54070-1. • http://www.w3schools.com/html 19 Mubashir Ali - Lecturer (Department of Computer Science) References