SlideShare a Scribd company logo
Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood
Thi-Qar University, Collage of Computer sciences and Mathematics,
Chapter 2
Part I
HTML
Topics
a) Hyper Text Markup Language(HTML)
b) HTML TAGs
c) The structure of an HTML program
d) Text Formatting
e) Lists
f) Adding Graphics to HTML Documents
*****************************************************************
I. Hyper Text Markup Language(HTML)
 The language used to develop web pages is called HTML.
 The HTML is language interpreted by Browser.
 Web pages are also called HTML documents.
 HTML is a set of special codes that can be embedded in text to add
formatting and linking information.
 HTML is specified as TAGS in an HTML documents.
II. HTML TAGs
 TAGs are instructions that are embedded directly into a text of the
documents.
 HTML TAGs is signal to the browser that it should do something
other than just throw text up on the screen.
 HTML TAGs can be of two types:
Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood
Thi-Qar University, Collage of Computer sciences and Mathematics,
1. Paired tags: Tags to be paired if it along with companion tag,
flanks the text for example <B> tag is paired Tag, with its
companion </B> causes the text between them to be bold.
2. Singular tags: it does not have companion tag for example <BR/>
tag will insert link break; this tag does not require companion tag.
III. The structure of an HTML program
Document Type <HTML> </HTML>
Title <TITLE> </TITLE>
Header <HEAD> </HEAD>
Body <BODY> </BODY>
• HTML document begins and ends with HTML tag i.e. <HTML>
</HTML>
Here <HTML> indicates the browser that it is a HTML document and
</HTML> tells the browser that HTML document is completed.
• Header Tag i.e. <HEAD></HEAD>
Header Tag does not contain any text; it only contains the Title Tag in it.
• Title tag i.e. <TITLE></TITLE>
anything written between this tag is not displayed on the screen but it is
used to identify the Webpage.
• Footer just as title can be placed in the title of the bar of the browser
window; certain information is placed on the foot of web page.
<ADDRESS>…….</ADDRESS>
• Body tag i.e.<BODY></BODY>
this is the main part of HTML document. The content which is to be
displayed on screen as webpage should be written here. Body Tag
contains the text as well as various tags but only the text will be
displayed on Webpage.
Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood
Thi-Qar University, Collage of Computer sciences and Mathematics,
A simple example
1.<html>
2.<head>
3.<title> My First WEB PAGE </title>
4.<body>
5.HTML is Hyper Text Markup Language
6.</body>
7.<address> address </address>
8.</html>
IV. Text Formatting
 Paragraph Breaks: <P> Paragraph Tag is used to begin a new
paragraph i.e. it tells the browser to insert a empty line and then
begin with a new line. A simple example
1.<html>
2.<head>
3.<title> My first web page </title></head>
4.<body>
5.<p>HTML is Hyper Text Markup Language</p>
6.<p>HTML is Easy</p>
7.</body>
8.</html
Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood
Thi-Qar University, Collage of Computer sciences and Mathematics,
 Line Break <br>: Line Break Tag as name indicates it is used to
tell the browser that the line has ended, without skipping blank
line.
 Horizontal Rule <hr>: Horizontal Rule Tag will give you a thin
black line across the page.
It has few basic elements.
1) Size: it sets length of the horizontal rule in pixels or in % of
page width.
2) Align: it aligns the horizontal rule to left, right, and center.
3) Width: It specifies the width of the horizontal rule.
Sample Program:
01.<html>
02.<head>
03.<title>Program</title></head>
04.<body>
05.<p>Statement<br>can<br>be<br>broken <br>using line break tag
06.<hr align =left size="2" width="50%" >
07.<p> Web Page can be divided using horizontal rule tag
08.</body>
09.</html>
 Heading:
There is tag for various headings in HTML known as Heading tag
ranging from h1 to h6 where h1 is for most important and h6 is for
least important.
Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood
Thi-Qar University, Collage of Computer sciences and Mathematics,
Example:
01.<html>
02.<head>
03.<title> Heading Example </title></head>
04.<body>
05.<h1>Heading tag </h1>
06.<h2>Heading tag </h2>
07.<h3>Heading tag </h3>
08.<h4>Heading tag </h4>
09.<h5>Heading tag </h5>
10.<h6>Heading tag </h6>
11.</body>
12.</html>
 Text styles
Bold: display the text in boldface style. The tags used are
<B>…..</B>.
Example is
<B> Computer Department</B>
Output is
Computer Department
Italic: display text in italic, the tags used are between <I>…..</I>
Example:
<I> Italic</I>
Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood
Thi-Qar University, Collage of Computer sciences and Mathematics,
Output:
Italic
Underline: display text as underlined, the tags used are
<U> …</U>
 Centering (text, Images, etc.):
<CENTER>……</CENTER> tags are used to center everything found
between them-text, lists, images, rules, tables and other pages elements.
 Font: Specify the font size, font face and color of text:
<font size="3" color="red">This is some text!</font>
<font face="verdana" color="green">This is some text!</font>
V. Lists
Type of Lists
1. Unordered Lists(Bullets)
An unordered list starts with the tag <UL> and ends with </UL> and
each list item starts with the tag <LI>.
Example:
<UL type=”circle”>
<li>Ahmed
<li>Abbas
<li>Ali
</UL>
Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood
Thi-Qar University, Collage of Computer sciences and Mathematics,
2. Ordered Lists(Numbering)
An ordered list start with the tag <OL> and ends with </OL>.each list
items start with the tag <LI>
<ol type="1"> - Default-Case Numerals.
<ol type="I"> - Upper-Case Numerals.
<ol type="i"> - Lower-Case Numerals.
<ol type="a"> - Lower-Case Letters.
<ol type="A"> - Upper-Case Letters.
Example:
<OL type=”a”>
<li>Ahmed
<li>Abbas
<li>Ali
</OL>
3. Definition Lists
The definition list values is appear within tag <DL> and </DL>.it
consist of two parts
Definition term: appears after the tag <DT>.
Definition description: appears after the tag<DD>.
Example:
<DL>
<DT>Keyboard
Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood
Thi-Qar University, Collage of Computer sciences and Mathematics,
<DD> an input device
<DT>Printer
<DD>an output device
</DL>
VI. Adding Graphics to HTML Documents
The <img> tag defines an image in an HTML page.
The <img> tag has two required attributes: src and alt.
Note: Images are not technically inserted into an HTML page, images
are linked to HTML pages. The <img> tag creates a holding space for
the referenced image.
Tip: To link an image to another document, simply nest the <img>
tag inside <a> tags.
align top
bottom
middle
left
right
Specifies the alignment of an image according to
surrounding elements
alt Text Specifies an alternate text for an image
border Pixels Specifies the width of the border around an image
height Pixels Specifies the height of an image
src URL Specifies the URL of an image
width Pixels Specifies the width of an image
Example:
<img src="smiley.gif" alt="Smiley face" width="42" height="42">

More Related Content

What's hot

HTML practical file
HTML practical fileHTML practical file
HTML practical file
Kuldeep Sharma
 
basic introduction of html tags
basic introduction  of html tagsbasic introduction  of html tags
basic introduction of html tags
Manish jariyal
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
Juvywen
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introductionc525600
 
HTML 5 Topic 2
HTML 5 Topic 2HTML 5 Topic 2
HTML 5 Topic 2
Juvywen
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
Unaib Aslam
 
Practical file on web technology(html)
Practical file on web technology(html)Practical file on web technology(html)
Practical file on web technology(html)
RAJWANT KAUR
 
Cse html ppt
Cse html pptCse html ppt
Cse html ppt
Mahantesh Hiremath
 
Lecture 2 introduction to html basics
Lecture 2 introduction to html basicsLecture 2 introduction to html basics
Lecture 2 introduction to html basics
AliMUSSA3
 
Session4
Session4Session4
Session4
Denise Garofalo
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
Fernando Torres
 
HTML
HTMLHTML
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
MayaLisa
 
static dynamic html tags
static dynamic html tagsstatic dynamic html tags
static dynamic html tags
teach4uin
 
Html programing
Html programingHtml programing
Html programing
Namrata dutt
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
Leo Mark Villar
 

What's hot (19)

HTML practical file
HTML practical fileHTML practical file
HTML practical file
 
basic introduction of html tags
basic introduction  of html tagsbasic introduction  of html tags
basic introduction of html tags
 
Html
HtmlHtml
Html
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
HTML 5 Topic 2
HTML 5 Topic 2HTML 5 Topic 2
HTML 5 Topic 2
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
 
HTML
HTMLHTML
HTML
 
Practical file on web technology(html)
Practical file on web technology(html)Practical file on web technology(html)
Practical file on web technology(html)
 
Cse html ppt
Cse html pptCse html ppt
Cse html ppt
 
Lecture 2 introduction to html basics
Lecture 2 introduction to html basicsLecture 2 introduction to html basics
Lecture 2 introduction to html basics
 
Session4
Session4Session4
Session4
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
 
Diva
DivaDiva
Diva
 
HTML
HTMLHTML
HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
static dynamic html tags
static dynamic html tagsstatic dynamic html tags
static dynamic html tags
 
Html programing
Html programingHtml programing
Html programing
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
 

Viewers also liked

Sessions &Cookies
Sessions &CookiesSessions &Cookies
Sessions &Cookies
Ahmed Saihood
 
DIFICULTADES DE LOS JÓVENES EN LA BÚSQUEDA DE INFORMACIÓN
DIFICULTADES DE LOS JÓVENES EN LA BÚSQUEDA DE INFORMACIÓNDIFICULTADES DE LOS JÓVENES EN LA BÚSQUEDA DE INFORMACIÓN
DIFICULTADES DE LOS JÓVENES EN LA BÚSQUEDA DE INFORMACIÓN
Pablo Parrado
 
Vale historia
Vale historiaVale historia
Vale historia
valeria vasquez
 
1 introd. à lógica
1   introd. à lógica1   introd. à lógica
1 introd. à lógica
Keilla Ramos
 
Medical biochemistry
Medical biochemistryMedical biochemistry
Medical biochemistry
Sidal hospital
 

Viewers also liked (6)

Sessions &Cookies
Sessions &CookiesSessions &Cookies
Sessions &Cookies
 
DIFICULTADES DE LOS JÓVENES EN LA BÚSQUEDA DE INFORMACIÓN
DIFICULTADES DE LOS JÓVENES EN LA BÚSQUEDA DE INFORMACIÓNDIFICULTADES DE LOS JÓVENES EN LA BÚSQUEDA DE INFORMACIÓN
DIFICULTADES DE LOS JÓVENES EN LA BÚSQUEDA DE INFORMACIÓN
 
AME Profile
AME ProfileAME Profile
AME Profile
 
Vale historia
Vale historiaVale historia
Vale historia
 
1 introd. à lógica
1   introd. à lógica1   introd. à lógica
1 introd. à lógica
 
Medical biochemistry
Medical biochemistryMedical biochemistry
Medical biochemistry
 

Similar to HTML-Part1

Htmlppt
Htmlppt Htmlppt
Htmlppt
Rajeev Sisodiya
 
Wp unit 1 (1)
Wp  unit 1 (1)Wp  unit 1 (1)
Wp unit 1 (1)
Bhavsingh Maloth
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
aneebkmct
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
DineshKumar522328
 
introduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML codingintroduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML coding
meheraf045
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
Folasade Adedeji
 
PPT-203105353-1.pdf
PPT-203105353-1.pdfPPT-203105353-1.pdf
PPT-203105353-1.pdf
PINTUCHAUHAN8
 
Html
HtmlHtml
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
DipaliJagtap6
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
xu fag
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
Nikita Garg
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
Minea Chem
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptx
shilpak0307
 
Html 5
Html 5Html 5
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
vaseemshaik21
 
Html presentation
Html presentationHtml presentation
Html presentation
Prashanthi Mamidisetty
 
Html
HtmlHtml
HTML - R.D.sivakumar
HTML - R.D.sivakumarHTML - R.D.sivakumar
HTML - R.D.sivakumar
Sivakumar R D .
 

Similar to HTML-Part1 (20)

Htmlppt
Htmlppt Htmlppt
Htmlppt
 
Wp unit 1 (1)
Wp  unit 1 (1)Wp  unit 1 (1)
Wp unit 1 (1)
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
introduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML codingintroduction to HTML. How to learn HTML coding
introduction to HTML. How to learn HTML coding
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
PPT-203105353-1.pdf
PPT-203105353-1.pdfPPT-203105353-1.pdf
PPT-203105353-1.pdf
 
Html
HtmlHtml
Html
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptx
 
Html 5
Html 5Html 5
Html 5
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html
HtmlHtml
Html
 
HTML - R.D.sivakumar
HTML - R.D.sivakumarHTML - R.D.sivakumar
HTML - R.D.sivakumar
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 

More from Ahmed Saihood

PHP-Part4
PHP-Part4PHP-Part4
PHP-Part4
Ahmed Saihood
 
PHP-Part3
PHP-Part3PHP-Part3
PHP-Part3
Ahmed Saihood
 
PHP-Part2
PHP-Part2PHP-Part2
PHP-Part2
Ahmed Saihood
 
HTTP & HTTPs
HTTP & HTTPsHTTP & HTTPs
HTTP & HTTPs
Ahmed Saihood
 
PHP-Part1
PHP-Part1PHP-Part1
PHP-Part1
Ahmed Saihood
 
CSS
CSSCSS
XHTML
XHTMLXHTML
HTML-Forms
HTML-FormsHTML-Forms
HTML-Forms
Ahmed Saihood
 
HTML-Part2
HTML-Part2HTML-Part2
HTML-Part2
Ahmed Saihood
 
internet basics
internet basics internet basics
internet basics
Ahmed Saihood
 

More from Ahmed Saihood (10)

PHP-Part4
PHP-Part4PHP-Part4
PHP-Part4
 
PHP-Part3
PHP-Part3PHP-Part3
PHP-Part3
 
PHP-Part2
PHP-Part2PHP-Part2
PHP-Part2
 
HTTP & HTTPs
HTTP & HTTPsHTTP & HTTPs
HTTP & HTTPs
 
PHP-Part1
PHP-Part1PHP-Part1
PHP-Part1
 
CSS
CSSCSS
CSS
 
XHTML
XHTMLXHTML
XHTML
 
HTML-Forms
HTML-FormsHTML-Forms
HTML-Forms
 
HTML-Part2
HTML-Part2HTML-Part2
HTML-Part2
 
internet basics
internet basics internet basics
internet basics
 

Recently uploaded

Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
ShahulHameed54211
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
TristanJasperRamos
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
Himani415946
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 

Recently uploaded (16)

Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 

HTML-Part1

  • 1. Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood Thi-Qar University, Collage of Computer sciences and Mathematics, Chapter 2 Part I HTML Topics a) Hyper Text Markup Language(HTML) b) HTML TAGs c) The structure of an HTML program d) Text Formatting e) Lists f) Adding Graphics to HTML Documents ***************************************************************** I. Hyper Text Markup Language(HTML)  The language used to develop web pages is called HTML.  The HTML is language interpreted by Browser.  Web pages are also called HTML documents.  HTML is a set of special codes that can be embedded in text to add formatting and linking information.  HTML is specified as TAGS in an HTML documents. II. HTML TAGs  TAGs are instructions that are embedded directly into a text of the documents.  HTML TAGs is signal to the browser that it should do something other than just throw text up on the screen.  HTML TAGs can be of two types:
  • 2. Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood Thi-Qar University, Collage of Computer sciences and Mathematics, 1. Paired tags: Tags to be paired if it along with companion tag, flanks the text for example <B> tag is paired Tag, with its companion </B> causes the text between them to be bold. 2. Singular tags: it does not have companion tag for example <BR/> tag will insert link break; this tag does not require companion tag. III. The structure of an HTML program Document Type <HTML> </HTML> Title <TITLE> </TITLE> Header <HEAD> </HEAD> Body <BODY> </BODY> • HTML document begins and ends with HTML tag i.e. <HTML> </HTML> Here <HTML> indicates the browser that it is a HTML document and </HTML> tells the browser that HTML document is completed. • Header Tag i.e. <HEAD></HEAD> Header Tag does not contain any text; it only contains the Title Tag in it. • Title tag i.e. <TITLE></TITLE> anything written between this tag is not displayed on the screen but it is used to identify the Webpage. • Footer just as title can be placed in the title of the bar of the browser window; certain information is placed on the foot of web page. <ADDRESS>…….</ADDRESS> • Body tag i.e.<BODY></BODY> this is the main part of HTML document. The content which is to be displayed on screen as webpage should be written here. Body Tag contains the text as well as various tags but only the text will be displayed on Webpage.
  • 3. Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood Thi-Qar University, Collage of Computer sciences and Mathematics, A simple example 1.<html> 2.<head> 3.<title> My First WEB PAGE </title> 4.<body> 5.HTML is Hyper Text Markup Language 6.</body> 7.<address> address </address> 8.</html> IV. Text Formatting  Paragraph Breaks: <P> Paragraph Tag is used to begin a new paragraph i.e. it tells the browser to insert a empty line and then begin with a new line. A simple example 1.<html> 2.<head> 3.<title> My first web page </title></head> 4.<body> 5.<p>HTML is Hyper Text Markup Language</p> 6.<p>HTML is Easy</p> 7.</body> 8.</html
  • 4. Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood Thi-Qar University, Collage of Computer sciences and Mathematics,  Line Break <br>: Line Break Tag as name indicates it is used to tell the browser that the line has ended, without skipping blank line.  Horizontal Rule <hr>: Horizontal Rule Tag will give you a thin black line across the page. It has few basic elements. 1) Size: it sets length of the horizontal rule in pixels or in % of page width. 2) Align: it aligns the horizontal rule to left, right, and center. 3) Width: It specifies the width of the horizontal rule. Sample Program: 01.<html> 02.<head> 03.<title>Program</title></head> 04.<body> 05.<p>Statement<br>can<br>be<br>broken <br>using line break tag 06.<hr align =left size="2" width="50%" > 07.<p> Web Page can be divided using horizontal rule tag 08.</body> 09.</html>  Heading: There is tag for various headings in HTML known as Heading tag ranging from h1 to h6 where h1 is for most important and h6 is for least important.
  • 5. Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood Thi-Qar University, Collage of Computer sciences and Mathematics, Example: 01.<html> 02.<head> 03.<title> Heading Example </title></head> 04.<body> 05.<h1>Heading tag </h1> 06.<h2>Heading tag </h2> 07.<h3>Heading tag </h3> 08.<h4>Heading tag </h4> 09.<h5>Heading tag </h5> 10.<h6>Heading tag </h6> 11.</body> 12.</html>  Text styles Bold: display the text in boldface style. The tags used are <B>…..</B>. Example is <B> Computer Department</B> Output is Computer Department Italic: display text in italic, the tags used are between <I>…..</I> Example: <I> Italic</I>
  • 6. Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood Thi-Qar University, Collage of Computer sciences and Mathematics, Output: Italic Underline: display text as underlined, the tags used are <U> …</U>  Centering (text, Images, etc.): <CENTER>……</CENTER> tags are used to center everything found between them-text, lists, images, rules, tables and other pages elements.  Font: Specify the font size, font face and color of text: <font size="3" color="red">This is some text!</font> <font face="verdana" color="green">This is some text!</font> V. Lists Type of Lists 1. Unordered Lists(Bullets) An unordered list starts with the tag <UL> and ends with </UL> and each list item starts with the tag <LI>. Example: <UL type=”circle”> <li>Ahmed <li>Abbas <li>Ali </UL>
  • 7. Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood Thi-Qar University, Collage of Computer sciences and Mathematics, 2. Ordered Lists(Numbering) An ordered list start with the tag <OL> and ends with </OL>.each list items start with the tag <LI> <ol type="1"> - Default-Case Numerals. <ol type="I"> - Upper-Case Numerals. <ol type="i"> - Lower-Case Numerals. <ol type="a"> - Lower-Case Letters. <ol type="A"> - Upper-Case Letters. Example: <OL type=”a”> <li>Ahmed <li>Abbas <li>Ali </OL> 3. Definition Lists The definition list values is appear within tag <DL> and </DL>.it consist of two parts Definition term: appears after the tag <DT>. Definition description: appears after the tag<DD>. Example: <DL> <DT>Keyboard
  • 8. Subject: Web Design and Programming Lecturer: Ahmed Ali Saihood Thi-Qar University, Collage of Computer sciences and Mathematics, <DD> an input device <DT>Printer <DD>an output device </DL> VI. Adding Graphics to HTML Documents The <img> tag defines an image in an HTML page. The <img> tag has two required attributes: src and alt. Note: Images are not technically inserted into an HTML page, images are linked to HTML pages. The <img> tag creates a holding space for the referenced image. Tip: To link an image to another document, simply nest the <img> tag inside <a> tags. align top bottom middle left right Specifies the alignment of an image according to surrounding elements alt Text Specifies an alternate text for an image border Pixels Specifies the width of the border around an image height Pixels Specifies the height of an image src URL Specifies the URL of an image width Pixels Specifies the width of an image Example: <img src="smiley.gif" alt="Smiley face" width="42" height="42">