SlideShare a Scribd company logo
3
Most read
4
Most read
9
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
Ad

Recommended

PPTX
HTML Text formatting tags
Himanshu Pathak
Ā 
PPTX
Basic html structure
Jhaun Paul Enriquez
Ā 
PPTX
Html and css
Sukrit Gupta
Ā 
PPT
Hyperlinks in HTML
Aarti P
Ā 
PPTX
Html ppt
santosh lamba
Ā 
PPTX
Html
yugank_gupta
Ā 
PDF
Introduction to HTML5
Gil Fink
Ā 
PPTX
Html5 Basic Structure
Niket Chandrawanshi
Ā 
PPT
Html
Cerise Anderson
Ā 
PPT
Html Slide Part-1
AAKASH KUMAR
Ā 
PPTX
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
Ā 
PPTX
Html5 tutorial for beginners
Singsys Pte Ltd
Ā 
PPT
Presentation on HTML
satvirsandhu9
Ā 
PPTX
Css types internal, external and inline (1)
Webtech Learning
Ā 
PPTX
Html links
JayjZens
Ā 
PPTX
Html coding
Briana VanBuskirk
Ā 
PPT
Introduction to JavaScript
Andres Baravalle
Ā 
PPT
Html Ppt
vijayanit
Ā 
PPTX
Introduction to Html
Folasade Adedeji
Ā 
PPTX
HTML Forms
Ravinder Kamboj
Ā 
PPTX
Introduction to html
veena parihar
Ā 
PPTX
Images and Tables in HTML
Aarti P
Ā 
PDF
Html text and formatting
eShikshak
Ā 
PPTX
Learn html Basics
McSoftsis
Ā 
PPTX
Basics for hosting a website
baabtra.com - No. 1 supplier of quality freshers
Ā 
PPT
Html presentation
Amber Bhaumik
Ā 
PPTX
html-table
Dhirendra Chauhan
Ā 
PDF
HTML-Part1
Ahmed Saihood
Ā 
PPTX
This slides helps a lot to learn about html tags.
Bangladesh Army University of Engineering and Technology
Ā 

More Related Content

What's hot (20)

PPT
Html
Cerise Anderson
Ā 
PPT
Html Slide Part-1
AAKASH KUMAR
Ā 
PPTX
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
Ā 
PPTX
Html5 tutorial for beginners
Singsys Pte Ltd
Ā 
PPT
Presentation on HTML
satvirsandhu9
Ā 
PPTX
Css types internal, external and inline (1)
Webtech Learning
Ā 
PPTX
Html links
JayjZens
Ā 
PPTX
Html coding
Briana VanBuskirk
Ā 
PPT
Introduction to JavaScript
Andres Baravalle
Ā 
PPT
Html Ppt
vijayanit
Ā 
PPTX
Introduction to Html
Folasade Adedeji
Ā 
PPTX
HTML Forms
Ravinder Kamboj
Ā 
PPTX
Introduction to html
veena parihar
Ā 
PPTX
Images and Tables in HTML
Aarti P
Ā 
PDF
Html text and formatting
eShikshak
Ā 
PPTX
Learn html Basics
McSoftsis
Ā 
PPTX
Basics for hosting a website
baabtra.com - No. 1 supplier of quality freshers
Ā 
PPT
Html presentation
Amber Bhaumik
Ā 
PPTX
html-table
Dhirendra Chauhan
Ā 
Html Slide Part-1
AAKASH KUMAR
Ā 
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
Ā 
Html5 tutorial for beginners
Singsys Pte Ltd
Ā 
Presentation on HTML
satvirsandhu9
Ā 
Css types internal, external and inline (1)
Webtech Learning
Ā 
Html links
JayjZens
Ā 
Html coding
Briana VanBuskirk
Ā 
Introduction to JavaScript
Andres Baravalle
Ā 
Html Ppt
vijayanit
Ā 
Introduction to Html
Folasade Adedeji
Ā 
HTML Forms
Ravinder Kamboj
Ā 
Introduction to html
veena parihar
Ā 
Images and Tables in HTML
Aarti P
Ā 
Html text and formatting
eShikshak
Ā 
Learn html Basics
McSoftsis
Ā 
Basics for hosting a website
baabtra.com - No. 1 supplier of quality freshers
Ā 
Html presentation
Amber Bhaumik
Ā 
html-table
Dhirendra Chauhan
Ā 

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
Ā 
PPTX
HTML
chinesebilli
Ā 
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
Ā 
HTML
chinesebilli
Ā 
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
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
Ā 
PPTX
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
sumadsadjelly121997
Ā 
PDF
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
Ā 
PPTX
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
Ā 
PDF
K12 Tableau User Group virtual event June 18, 2025
dogden2
Ā 
PDF
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
Ā 
PDF
VCE Literature Section A Exam Response Guide
jpinnuck
Ā 
PPTX
List View Components in Odoo 18 - Odoo Slides
Celine George
Ā 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
Ā 
PPTX
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
Ā 
PDF
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
Ā 
PPTX
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
Ā 
PPTX
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
Ā 
PPTX
Peer Teaching Observations During School Internship
AjayaMohanty7
Ā 
PDF
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
Ā 
PPTX
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
Ā 
PPTX
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
Ā 
PPTX
How to Customize Quotation Layouts in Odoo 18
Celine George
Ā 
PPTX
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
Ā 
PDF
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
Ā 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
Ā 
Filipino 9 Maikling Kwento Ang Ama Panitikang Asiyano
sumadsadjelly121997
Ā 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
Ā 
NSUMD_M1 Library Orientation_June 11, 2025.pptx
Julie Sarpy
Ā 
K12 Tableau User Group virtual event June 18, 2025
dogden2
Ā 
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
Ā 
VCE Literature Section A Exam Response Guide
jpinnuck
Ā 
List View Components in Odoo 18 - Odoo Slides
Celine George
Ā 
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
Ā 
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
Ā 
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
Ā 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
Ā 
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
Ā 
Peer Teaching Observations During School Internship
AjayaMohanty7
Ā 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
Ā 
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
Ā 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
Ā 
How to Customize Quotation Layouts in Odoo 18
Celine George
Ā 
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
Ā 
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
Ā 

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