SlideShare a Scribd company logo
1 of 39
,
T. Nawal Abdullah Alragwi
HTML Lists
Basic HTML
 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 documents are described by HTML tags
 Each HTML tag describes different document
content.
What is HTML?
4
HTML History
 HTML 2.0
 HTML 3.2
 HTML 4.0
– All formatting is separated into a style sheet.
 HTML 4.01
– Makes the future upgrade from HTML to XHTML in a
simple process.
 XHTML – sometimes referred to as HTML 5
– The future of HTML standard
– Almost identical to HTML 4.01
HTML Editors
 HTML can be edited by using a professional
HTML editor like:
– Adobe Dreamweaver
– Microsoft Expression Web
– CoffeeCup HTML Editor
 However, for learning HTML we recommend a
text editor like Notepad (PC).
 We believe using a simple text editor is a good
way to learn HTML.
Follow the 4 steps below to create your first web page with
Notepad.
Step 1: Open Notepad
To open Notepad in Windows 7 or earlier:
Click Start (bottom left on your screen). Click All Programs.
Click Accessories. Click Notepad.
Step 2: Write Some HTML
Write or copy some HTML into Notepad.
Step 3: Save the HTML Page
Select File > Save as in the Notepad menu.
Name the file "index.htm" or any other name ending with htm.
UTF-8 is the preferred encoding for HTML files.6
HTML Editors
7
 HTML Elements
 HTML elements are written with a start tag, with an end tag,
with the content in between:
 <tagname>content</tagname>
 The HTML element is everything from the start tag to the
end tag:
 <p>My first HTML paragraph.</p>
What are Element / Tags?
End tag
Element contentStart tag
</h1>My First Heading<h1>
</p>My first paragraph.<p>
<br>
8
HTML Document Template
9
8
<!DOCTYPE html>
<html>
<head>
9 <title>Welcome</title>
10 </head>
11
12 <body>
13 <p>Welcome to HTML!</p>
14 </body>
15 </html>
Creates a head element
Creates a title element,
which contains the text
Welcome
Creates a p element within the
body, which displays welcome
text
HTML Example
Example Explained
10
The DOCTYPE declaration defines 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 the document
The text between <body> and </body> describes the visible page content
The text between <p> and </p> describes a paragraph
HTML Page Structure
 Main HTML Elements / Tags
11
12
HTML Attributes
<p align=“right”> welcome </p>
Element Attribute Name Attribute Value
HTML elements can have attributes.
Attributes provide additional information about an
element.
Attributes are always specified in the start tag.
Attributes come in name/value pairs like: name="value"
content
13
Headings
 Heading Types
– <H1 ...> ... </H1>
– <H2 ...> ... </H2>
– <H3 ...> ... </H3>
– <H4 ...> ... </H4>
– <H5 ...> ... </H5>
– <H6 ...> ... </H6>
 Attributes: ALIGN
– Values: LEFT (default), RIGHT, CENTER
 Nesting tags
– Headings and other block-level elements can contain
text-level elements, but not vice versa
14
Headings, Example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Document Headings</TITLE>
</HEAD>
<BODY>
Samples of the six heading types:
<H1>Level-1 (H1)</H1>
<H2 ALIGN="CENTER">Level-2 (H2)</H2>
<H3><U>Level-3 (H3)</U></H3>
<H4 ALIGN="RIGHT">Level-4 (H4)</H4>
<H5>Level-5 (H5)</H5>
<H6>Level-6 (H6)</H6>
</BODY>
</HTML>
15
Headings, Result
16
P – The Basic Paragraph
 Attributes: ALIGN
– LEFT (default), RIGHT, CENTER. Same as headings.
– Whitespace ignored (use <BR> for line break)
– End Tag is Optional:
<BODY>
<P>
Paragraph 1
</P>
<P>
Paragraph 2
</P>
<P>
Paragraph 3
</P>
</BODY>
Fully-Specified
<BODY>
Paragraph 1
<P>
Paragraph 2
<P>
Paragraph 3
</BODY>
Equivalent with Implied Tags
17
<html>
<head>
<title>Text Layout</title>
</head>
<body>
<p>
This is a paragraph of text <br/>
made up of two lines.
</p>
<p>
This is another paragraph with a
&nbsp; GAP &nbsp; between
some of the words.
</p>
<p>
&nbsp;&nbsp; This paragraph is <br/>
indented on the first line <br/>
but not on subsequent lines.
</p>
</body>
</html>
Paragraph, Example
18
Paragraph, Result
You can add comments to your HTML source by using the following
syntax:
Example
<!-- Write your comments here -->
Note:
 There is an exclamation point (!) in the opening tag, but not in the
closing tag.
 Comments are not displayed by the browser, but they can help
document your HTML.
With comments you can place notifications and reminders in your
HTML:
HTML Comment Tags
20
<!DOCTYPE html>
<html>
<body>
<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Comments are not displayed in the
browser -->
</body>
</html>
Comment, Example
21
HTML Text Formatting Elements
Tag Description
<u> Under line
<b> Bold text
<big> Big text
<em> Emphasized text
<i> Italic text
<tt>… </tt> specify typewriter-like (fixed-width) font
<small> Small text
<strong> Strong text
<sub> Subscripted text
<sup> Superscripted text
22
Tag Description
<br/> Break-enter
<hr/> Horizontal line
<Pre> Defines preformatted text
<abbr> abbreviation
<strike> Defines deleted text
<ins> Defines inserted text
<del> Defines deleted text
<mark> Defines marked/highlighted text
<code> Defines programming code
<kbd> Defines keyboard input
<samp> Defines computer output
<var> Defines a mathematical variable
23
The most common entities
Display Description Name
Non-breaking space &nbsp;
< Less than &lt;
> Greater than &gt;
& Ampersand &amp;
“ Quotation mark &quot;
‘ Apostrophe &#39;
HTML Computer Code
Elements
 Normally, HTML uses variable letter size,
and variable letter spacing.
 This is not wanted when displaying
examples of computer code.
 The <kbd>, <samp>, and <code>
elements all support fixed letter size and
spacing.
24
25
HTML Text Formatting
Elements Example
...
<H1>Physical Character Styles</H1>
<B>Bold</B><BR>
<I>Italic</I><BR>
<TT>Teletype (Monospaced)</TT><BR>
<U>Underlined</U><BR>
Subscripts: f<SUB>0</SUB> + f<SUB>1</SUB><BR>
Superscripts: x<SUP>2</SUP> + y<SUP>2</SUP><BR>
<SMALL>Smaller</SMALL><BR>
<BIG>Bigger</BIG><BR>
<STRIKE>Strike Through</STRIKE><BR>
<B><I>Bold Italic</I></B><BR>
<BIG><TT>Big Monospaced</TT></BIG><BR>
<SMALL><I>Small Italic</I></SMALL><BR>
<FONT COLOR="GRAY">Gray</FONT><BR>
<DEL>Delete</DEL><BR>
<INS>Insert</INS><BR>
...
26
HTML Text Formatting Elements,
Result
27
HTML Computer Code Elements
Example
...
<H1>Logical Character Styles</H1>
<EM>Emphasized</EM><BR>
<STRONG>Strongly Emphasized</STRONG><BR>
<CODE>Code</CODE><BR>
<SAMP>Sample Output</SAMP><BR>
<KBD>Keyboard Text</KBD><BR>
<DFN>Definition</DFN><BR>
<VAR>Variable</VAR><BR>
<CITE>Citation</CITE><BR>
<EM><CODE>Emphasized Code</CODE></EM><BR>
<FONT COLOR="GRAY"><CITE>Gray Citation</CITE></FONT><BR>
<ACRONYM TITLE="Java Development Kit">JDK
Acronym</ACRONYM>
...
28
HTML Computer Code Elements,
Result
29
6
7 <html >
8 <head>
9 <title>Contact Page</title>
10 </head>
11
12 <body>
13 <p>
14 Click
15 <a href = "mailto:deitel@deitel.com">here</a>
16 to open an email message addressed to
17 deitel@deitel.com.
18 </p>
19
20 <hr /> <!-- inserts a horizontal rule -->
21
22 <!-- special characters are entered -->
23 <!-- using the form &code; -->
24 <p>All information on this site is <strong>&copy;
25 Deitel &amp; Associates, Inc. 2007.</strong></p>
26
Inserts a horizontal
rule, with a line break
before and after
Inserts the special
characters © and &
Physical Character Styles,
Example
30
27 <!-- to strike through text use <del> tags -->
28 <!-- to subscript text use <sub> tags -->
29 <!-- to superscript text use <sup> tags -->
30 <!-- these tags are nested inside other tags -->
31 <p><del>You may download 3.14 x 10<sup>2</sup>
32 characters worth of information from this site.</del>
33 Only <sub>one</sub> download per hour is permitted.</p>
34 <p><em>Note: &lt; &frac14; of the information
35 presented here is updated daily.</em></p>
36 </body>
37 </html>
Makes the 2
superscript
Makes the 1
subscript
Creates a strikethrough
effect
Emphasizes
text
Inserts the special
symbols < and ¼
31
HTML Lists
 Unordred Lists
 Ordered Lists
 Definition Lists
32
OL: Ordered (Numbered)
Lists
 OL Element
– <OL>
<LI>…
<LI>…
...
</OL>
– Attributes: TYPE, START, COMPACT
 List entries: LI
– <LI ...> ... </LI> (End Tag Optional)
– Attributes: (When inside OL) VALUE, TYPE
A sample list:
<OL>
<LI>List Item One
<LI>List Item Two
<LI>List Item Three
</OL>
INE2720 – Web Application Software Development 33
Nested
Ordered Lists
<OL TYPE="I">
<LI>Headings
<LI>Basic Text Sections
<LI>Lists
<OL TYPE="A">
<LI>Ordered
<OL TYPE="1">
<LI>The OL tag
<OL TYPE="a">
<LI>TYPE
<LI>START
<LI>COMPACT
</OL>
<LI>The LI tag
</OL>
<LI>Unordered
<OL TYPE="1">
<LI>The UL tag
<LI>The LI tag
</OL>
<LI>Definition
<OL TYPE="1">
<LI>The DL tag
<LI>The DT tag
<LI>The DD tag
</OL>
</OL>
<LI>Miscellaneous
</OL>
34
UL: Unordered (Bulleted) Lists
 UL Element
– <UL>
<LI>…
<LI>…
...
</UL>
 Attributes: TYPE, COMPACT
– TYPE is DISC, CIRCLE, or SQUARE
 List entries: LI (TYPE)
– TYPE is DISC, CIRCLE, or SQUARE
A sample list:
<UL>
<LI>List Item One
<LI>List Item Two
<LI>List Item Three
</UL>
INE2720 – Web Application Software Development 35
UL: Custom
Bullets
<UL TYPE="DISC">
<LI>The UL tag
<UL TYPE="CIRCLE">
<LI>TYPE
<UL TYPE="SQUARE">
<LI>DISC
<LI>CIRCLE
<LI>SQUARE
</UL>
<LI>COMPACT
</UL>
<LI>The LI tag
<UL TYPE="CIRCLE">
<LI>TYPE
<UL TYPE="SQUARE">
<LI>DISC
<LI>CIRCLE
<LI>SQUARE
</UL>
<LI>VALUE
</UL>
</UL>
36
HTML Links
 <a> to create a link to another
document.
 The target attribute
– <a href=“…”, target=“_blank”>xxx</a>
– Open the document in a new browser
window.
 The name attribute
– <a name=“abc”>
– <a href=“#abc”>Useful text</a>
1
8 <html >
9 <head>
10 <title>Internet and WWW How to Program - Links</title>
11 </head>
12
13 <body>
14
15 <h1>Here are my favorite sites</h1>
16
17 <p><strong>Click on a name to go to that page.</strong></p>
18
19 <p><a href = "http://www.deitel.com">Deitel</a></p>
20
21 <p><a href = "http://www.prenhall.com">Prentice Hall</a></p>
22
23 <p><a href = "http://www.yahoo.com">Yahoo!</a></p>
24
25 <p><a href = "http://www.usatoday.com">USA Today</a></p>
26
27 </body>
28 </html>
Text between strong tags will
appear bold.
Elements placed between paragraph tags
will be set apart from other elements on the
Linking is accomplished in XHTML
with the anchor (a) element.
The anchor links to the page that’s
value is given by the href attribute.
The text between the a tags is the anchor for the
link.
Hypertext Links
Clicking on the “Deitel” link will open up the
Deitel homepage in a new browser window.
7
8 <html xmlns = "http://www.w3.org/1999/xhtml">
9 <head>
10 <title>Internet and WWW How to Program - Contact Page
11 </title>
12 </head>
13
14 <body>
15
16 <p>My email address is
17 <a href = "mailto:deitel@deitel.com"> deitel@deitel.com
18 </a>. Click the address and your browser will open an
19 email message and address it to me.</p>
20
21 </body>
22 </html>
To create an email link include “mailto:”
before the email address in the href
attribute.
When a user clicks on an email link,
an email message addressed to the
value of the link will open up.

More Related Content

What's hot (20)

Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Learn HTML Step By Step
Learn HTML Step By StepLearn HTML Step By Step
Learn HTML Step By Step
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
INTRODUCTION TO HTML
INTRODUCTION TO HTMLINTRODUCTION TO HTML
INTRODUCTION TO HTML
 
Tags in html
Tags in htmlTags in html
Tags in html
 
html
htmlhtml
html
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
 
Html basic
Html basicHtml basic
Html basic
 
Standard html tags
Standard html tagsStandard html tags
Standard html tags
 
Html basics
Html basicsHtml basics
Html basics
 
HTML practical guide for O/L exam
HTML practical guide for O/L examHTML practical guide for O/L exam
HTML practical guide for O/L exam
 
html tags
html tagshtml tags
html tags
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
HTML
HTMLHTML
HTML
 
html tutorial
html tutorialhtml tutorial
html tutorial
 
Basics of Html
 Basics of Html Basics of Html
Basics of Html
 
Htmlppt 100604051515-phpapp01
Htmlppt 100604051515-phpapp01Htmlppt 100604051515-phpapp01
Htmlppt 100604051515-phpapp01
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 

Similar to HTML Lists Basic Guide

Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to htmlpalhaftab
 
Web Design Lecture2.pptx
Web Design Lecture2.pptxWeb Design Lecture2.pptx
Web Design Lecture2.pptxMohammedNoor74
 
Basic HTML
Basic HTMLBasic HTML
Basic HTMLSayan De
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsNikita Garg
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsxu fag
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsMinea Chem
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part IUnaib Aslam
 
HTML web design_ an introduction to design
HTML web design_ an introduction to designHTML web design_ an introduction to design
HTML web design_ an introduction to designSureshSingh142
 
2a web technology html basics 1
2a web technology html basics 12a web technology html basics 1
2a web technology html basics 1Jyoti Yadav
 

Similar to HTML Lists Basic Guide (20)

Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
Web Design Lecture2.pptx
Web Design Lecture2.pptxWeb Design Lecture2.pptx
Web Design Lecture2.pptx
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
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
 
Html ppt
Html pptHtml ppt
Html ppt
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 
Learn HTML Easier
Learn HTML EasierLearn HTML Easier
Learn HTML Easier
 
HTML web design_ an introduction to design
HTML web design_ an introduction to designHTML web design_ an introduction to design
HTML web design_ an introduction to design
 
Html
HtmlHtml
Html
 
2a web technology html basics 1
2a web technology html basics 12a web technology html basics 1
2a web technology html basics 1
 
Html presantation
Html presantationHtml presantation
Html presantation
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 

Recently uploaded

VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Roomishabajaj13
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Personfurqan222004
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一3sw2qly1
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 

Recently uploaded (20)

VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Person
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 

HTML Lists Basic Guide

  • 3.  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 documents are described by HTML tags  Each HTML tag describes different document content. What is HTML?
  • 4. 4 HTML History  HTML 2.0  HTML 3.2  HTML 4.0 – All formatting is separated into a style sheet.  HTML 4.01 – Makes the future upgrade from HTML to XHTML in a simple process.  XHTML – sometimes referred to as HTML 5 – The future of HTML standard – Almost identical to HTML 4.01
  • 5. HTML Editors  HTML can be edited by using a professional HTML editor like: – Adobe Dreamweaver – Microsoft Expression Web – CoffeeCup HTML Editor  However, for learning HTML we recommend a text editor like Notepad (PC).  We believe using a simple text editor is a good way to learn HTML.
  • 6. Follow the 4 steps below to create your first web page with Notepad. Step 1: Open Notepad To open Notepad in Windows 7 or earlier: Click Start (bottom left on your screen). Click All Programs. Click Accessories. Click Notepad. Step 2: Write Some HTML Write or copy some HTML into Notepad. Step 3: Save the HTML Page Select File > Save as in the Notepad menu. Name the file "index.htm" or any other name ending with htm. UTF-8 is the preferred encoding for HTML files.6 HTML Editors
  • 7. 7  HTML Elements  HTML elements are written with a start tag, with an end tag, with the content in between:  <tagname>content</tagname>  The HTML element is everything from the start tag to the end tag:  <p>My first HTML paragraph.</p> What are Element / Tags? End tag Element contentStart tag </h1>My First Heading<h1> </p>My first paragraph.<p> <br>
  • 9. 9 8 <!DOCTYPE html> <html> <head> 9 <title>Welcome</title> 10 </head> 11 12 <body> 13 <p>Welcome to HTML!</p> 14 </body> 15 </html> Creates a head element Creates a title element, which contains the text Welcome Creates a p element within the body, which displays welcome text HTML Example
  • 10. Example Explained 10 The DOCTYPE declaration defines 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 the document The text between <body> and </body> describes the visible page content The text between <p> and </p> describes a paragraph
  • 11. HTML Page Structure  Main HTML Elements / Tags 11
  • 12. 12 HTML Attributes <p align=“right”> welcome </p> Element Attribute Name Attribute Value HTML elements can have attributes. Attributes provide additional information about an element. Attributes are always specified in the start tag. Attributes come in name/value pairs like: name="value" content
  • 13. 13 Headings  Heading Types – <H1 ...> ... </H1> – <H2 ...> ... </H2> – <H3 ...> ... </H3> – <H4 ...> ... </H4> – <H5 ...> ... </H5> – <H6 ...> ... </H6>  Attributes: ALIGN – Values: LEFT (default), RIGHT, CENTER  Nesting tags – Headings and other block-level elements can contain text-level elements, but not vice versa
  • 14. 14 Headings, Example <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Document Headings</TITLE> </HEAD> <BODY> Samples of the six heading types: <H1>Level-1 (H1)</H1> <H2 ALIGN="CENTER">Level-2 (H2)</H2> <H3><U>Level-3 (H3)</U></H3> <H4 ALIGN="RIGHT">Level-4 (H4)</H4> <H5>Level-5 (H5)</H5> <H6>Level-6 (H6)</H6> </BODY> </HTML>
  • 16. 16 P – The Basic Paragraph  Attributes: ALIGN – LEFT (default), RIGHT, CENTER. Same as headings. – Whitespace ignored (use <BR> for line break) – End Tag is Optional: <BODY> <P> Paragraph 1 </P> <P> Paragraph 2 </P> <P> Paragraph 3 </P> </BODY> Fully-Specified <BODY> Paragraph 1 <P> Paragraph 2 <P> Paragraph 3 </BODY> Equivalent with Implied Tags
  • 17. 17 <html> <head> <title>Text Layout</title> </head> <body> <p> This is a paragraph of text <br/> made up of two lines. </p> <p> This is another paragraph with a &nbsp; GAP &nbsp; between some of the words. </p> <p> &nbsp;&nbsp; This paragraph is <br/> indented on the first line <br/> but not on subsequent lines. </p> </body> </html> Paragraph, Example
  • 19. You can add comments to your HTML source by using the following syntax: Example <!-- Write your comments here --> Note:  There is an exclamation point (!) in the opening tag, but not in the closing tag.  Comments are not displayed by the browser, but they can help document your HTML. With comments you can place notifications and reminders in your HTML: HTML Comment Tags
  • 20. 20 <!DOCTYPE html> <html> <body> <!-- This is a comment --> <p>This is a paragraph.</p> <!-- Comments are not displayed in the browser --> </body> </html> Comment, Example
  • 21. 21 HTML Text Formatting Elements Tag Description <u> Under line <b> Bold text <big> Big text <em> Emphasized text <i> Italic text <tt>… </tt> specify typewriter-like (fixed-width) font <small> Small text <strong> Strong text <sub> Subscripted text <sup> Superscripted text
  • 22. 22 Tag Description <br/> Break-enter <hr/> Horizontal line <Pre> Defines preformatted text <abbr> abbreviation <strike> Defines deleted text <ins> Defines inserted text <del> Defines deleted text <mark> Defines marked/highlighted text <code> Defines programming code <kbd> Defines keyboard input <samp> Defines computer output <var> Defines a mathematical variable
  • 23. 23 The most common entities Display Description Name Non-breaking space &nbsp; < Less than &lt; > Greater than &gt; & Ampersand &amp; “ Quotation mark &quot; ‘ Apostrophe &#39;
  • 24. HTML Computer Code Elements  Normally, HTML uses variable letter size, and variable letter spacing.  This is not wanted when displaying examples of computer code.  The <kbd>, <samp>, and <code> elements all support fixed letter size and spacing. 24
  • 25. 25 HTML Text Formatting Elements Example ... <H1>Physical Character Styles</H1> <B>Bold</B><BR> <I>Italic</I><BR> <TT>Teletype (Monospaced)</TT><BR> <U>Underlined</U><BR> Subscripts: f<SUB>0</SUB> + f<SUB>1</SUB><BR> Superscripts: x<SUP>2</SUP> + y<SUP>2</SUP><BR> <SMALL>Smaller</SMALL><BR> <BIG>Bigger</BIG><BR> <STRIKE>Strike Through</STRIKE><BR> <B><I>Bold Italic</I></B><BR> <BIG><TT>Big Monospaced</TT></BIG><BR> <SMALL><I>Small Italic</I></SMALL><BR> <FONT COLOR="GRAY">Gray</FONT><BR> <DEL>Delete</DEL><BR> <INS>Insert</INS><BR> ...
  • 26. 26 HTML Text Formatting Elements, Result
  • 27. 27 HTML Computer Code Elements Example ... <H1>Logical Character Styles</H1> <EM>Emphasized</EM><BR> <STRONG>Strongly Emphasized</STRONG><BR> <CODE>Code</CODE><BR> <SAMP>Sample Output</SAMP><BR> <KBD>Keyboard Text</KBD><BR> <DFN>Definition</DFN><BR> <VAR>Variable</VAR><BR> <CITE>Citation</CITE><BR> <EM><CODE>Emphasized Code</CODE></EM><BR> <FONT COLOR="GRAY"><CITE>Gray Citation</CITE></FONT><BR> <ACRONYM TITLE="Java Development Kit">JDK Acronym</ACRONYM> ...
  • 28. 28 HTML Computer Code Elements, Result
  • 29. 29 6 7 <html > 8 <head> 9 <title>Contact Page</title> 10 </head> 11 12 <body> 13 <p> 14 Click 15 <a href = "mailto:deitel@deitel.com">here</a> 16 to open an email message addressed to 17 deitel@deitel.com. 18 </p> 19 20 <hr /> <!-- inserts a horizontal rule --> 21 22 <!-- special characters are entered --> 23 <!-- using the form &code; --> 24 <p>All information on this site is <strong>&copy; 25 Deitel &amp; Associates, Inc. 2007.</strong></p> 26 Inserts a horizontal rule, with a line break before and after Inserts the special characters © and & Physical Character Styles, Example
  • 30. 30 27 <!-- to strike through text use <del> tags --> 28 <!-- to subscript text use <sub> tags --> 29 <!-- to superscript text use <sup> tags --> 30 <!-- these tags are nested inside other tags --> 31 <p><del>You may download 3.14 x 10<sup>2</sup> 32 characters worth of information from this site.</del> 33 Only <sub>one</sub> download per hour is permitted.</p> 34 <p><em>Note: &lt; &frac14; of the information 35 presented here is updated daily.</em></p> 36 </body> 37 </html> Makes the 2 superscript Makes the 1 subscript Creates a strikethrough effect Emphasizes text Inserts the special symbols < and ¼
  • 31. 31 HTML Lists  Unordred Lists  Ordered Lists  Definition Lists
  • 32. 32 OL: Ordered (Numbered) Lists  OL Element – <OL> <LI>… <LI>… ... </OL> – Attributes: TYPE, START, COMPACT  List entries: LI – <LI ...> ... </LI> (End Tag Optional) – Attributes: (When inside OL) VALUE, TYPE A sample list: <OL> <LI>List Item One <LI>List Item Two <LI>List Item Three </OL>
  • 33. INE2720 – Web Application Software Development 33 Nested Ordered Lists <OL TYPE="I"> <LI>Headings <LI>Basic Text Sections <LI>Lists <OL TYPE="A"> <LI>Ordered <OL TYPE="1"> <LI>The OL tag <OL TYPE="a"> <LI>TYPE <LI>START <LI>COMPACT </OL> <LI>The LI tag </OL> <LI>Unordered <OL TYPE="1"> <LI>The UL tag <LI>The LI tag </OL> <LI>Definition <OL TYPE="1"> <LI>The DL tag <LI>The DT tag <LI>The DD tag </OL> </OL> <LI>Miscellaneous </OL>
  • 34. 34 UL: Unordered (Bulleted) Lists  UL Element – <UL> <LI>… <LI>… ... </UL>  Attributes: TYPE, COMPACT – TYPE is DISC, CIRCLE, or SQUARE  List entries: LI (TYPE) – TYPE is DISC, CIRCLE, or SQUARE A sample list: <UL> <LI>List Item One <LI>List Item Two <LI>List Item Three </UL>
  • 35. INE2720 – Web Application Software Development 35 UL: Custom Bullets <UL TYPE="DISC"> <LI>The UL tag <UL TYPE="CIRCLE"> <LI>TYPE <UL TYPE="SQUARE"> <LI>DISC <LI>CIRCLE <LI>SQUARE </UL> <LI>COMPACT </UL> <LI>The LI tag <UL TYPE="CIRCLE"> <LI>TYPE <UL TYPE="SQUARE"> <LI>DISC <LI>CIRCLE <LI>SQUARE </UL> <LI>VALUE </UL> </UL>
  • 36. 36 HTML Links  <a> to create a link to another document.  The target attribute – <a href=“…”, target=“_blank”>xxx</a> – Open the document in a new browser window.  The name attribute – <a name=“abc”> – <a href=“#abc”>Useful text</a>
  • 37. 1 8 <html > 9 <head> 10 <title>Internet and WWW How to Program - Links</title> 11 </head> 12 13 <body> 14 15 <h1>Here are my favorite sites</h1> 16 17 <p><strong>Click on a name to go to that page.</strong></p> 18 19 <p><a href = "http://www.deitel.com">Deitel</a></p> 20 21 <p><a href = "http://www.prenhall.com">Prentice Hall</a></p> 22 23 <p><a href = "http://www.yahoo.com">Yahoo!</a></p> 24 25 <p><a href = "http://www.usatoday.com">USA Today</a></p> 26 27 </body> 28 </html> Text between strong tags will appear bold. Elements placed between paragraph tags will be set apart from other elements on the Linking is accomplished in XHTML with the anchor (a) element. The anchor links to the page that’s value is given by the href attribute. The text between the a tags is the anchor for the link.
  • 38. Hypertext Links Clicking on the “Deitel” link will open up the Deitel homepage in a new browser window.
  • 39. 7 8 <html xmlns = "http://www.w3.org/1999/xhtml"> 9 <head> 10 <title>Internet and WWW How to Program - Contact Page 11 </title> 12 </head> 13 14 <body> 15 16 <p>My email address is 17 <a href = "mailto:deitel@deitel.com"> deitel@deitel.com 18 </a>. Click the address and your browser will open an 19 email message and address it to me.</p> 20 21 </body> 22 </html> To create an email link include “mailto:” before the email address in the href attribute. When a user clicks on an email link, an email message addressed to the value of the link will open up.