new chapter 10 · 2020. 3. 12. · chapter 10 . acs-1809-051 – slides used in the course ... ...
TRANSCRIPT
![Page 1: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/1.jpg)
ACS-1809-051 Web Design and Development
Chapter 10
![Page 2: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/2.jpg)
ACS-1809-051 – Slides Used In The Course
A note on the use of these slides: These slides has been adopted and/or modified from the original for the use in this course. The author of the text have make these slides available to all (faculty, students, readers) and they obviously represent a lot of work on their part. In return for use, please: • If slides are being used (e.g., in a class) that
the source be mentioned (after all, the author like people to use our book!)
• If any slides are being posted on a www site, note that they are adapted from (or perhaps identical to) the author original slides, and note their copyright of this material.
© McGraw-Hill Osborne Media 2013, HTML. A beginners guide, 5th Edition
![Page 3: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/3.jpg)
Creating Lists
• Ordered Lists
• Unordered Lists
• Definition Lists
• Combination and Nesting of Lists
• Style Lists
3/11/2020 3
![Page 4: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/4.jpg)
Ordered Lists
My favorite fruits are:
1. Raspberry
2. Strawberry
3. Apple
3/11/2020 4
HTML Code: My favorite fruits are:
<ol>
<li>Raspberry</li>
<li>Strawberry</li>
<li>Apple</li>
</ol>
![Page 5: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/5.jpg)
Ordered Lists – Type attribute
• To change the type of ordered list add the type attribute and its value to the opening ol tag.
• <ol type=“I”>
<li> Introduction</li>
<li>Understanding HTML</li>
<li>Basic Page Structures</li>
</ol>
3/11/2020 5
I. Introduction II. Understanding HTML III. Basic Page Structure
![Page 6: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/6.jpg)
Ordered List Types
Type Attribute Value Numbering Style Example
1 Numbers 1, 2, 3, ...
a Lowercase alphabet a, b, c, ...
A Uppercase alphabet A, B, C, ...
i Lowercase Roman numerals i, ii, iii, ...
I Uppercase Roman numerals I, II, III, ...
3/11/2020 6
![Page 7: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/7.jpg)
Different Starting Number
• You can change the starting number or letter of an ordered list using start attribute.
<ol type=“a” start=“3”>
<li>Color</li>
<li>Working with text</li>
<li>Working with links</li>
</ol>
3/11/2020 7
c. Color d. Working with text e. Working with links
![Page 8: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/8.jpg)
Change Individual Number
• You can add the value attribute to the specific li tag to change an individual value
<ol type=“a” start=“3”>
<li> Color</li>
<li>Working with text</li>
<li value=“7”>Working with links</li>
</ol>
3/11/2020 8
c. Color d. Working with text g. Working with links
![Page 9: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/9.jpg)
Unordered Lists
An unordered list looks like:
• Red
• Green
• Blue
3/11/2020 9
HTML Code:
<ul>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>
![Page 10: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/10.jpg)
Definition Lists
HTML Code: <dl>
<dt>W3C</dt>
<dd> The World Wide Web Consortium was created in 1994 to develop standards and protocols for the World Wide Web.</dd>
<dt>HTML</dt>
<dd> Hypertext Markup Language is the authoring language used to create documents for the World Wide Web.</dd>
</dl>
3/11/2020 10
![Page 11: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/11.jpg)
Definition Lists
W3C
The World Wide Web Consortium was created in 1994 to develop standards and protocols for the World Wide Web.
HTML
Hypertext Markup Language is the authoring language used to create documents for the World Wide Web.
3/11/2020 11
![Page 12: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/12.jpg)
Combine and Nest Lists
I. Introduction
II. Part 1
A. Description
B. Example
1. Reference 1
2. Reference 2
III. Part 2
IV. Summery
3/11/2020 12
HTML Code <ol type=“I”> <li>Introduction</li> <li>Part 1</li> <ol type=“A”> <li>Description</li> <li>Example</li> <ol type=“1”> <li> Reference 1</li> <li> Reference 2</li> </ol> </ol> <li>Part 2</li> <li>Summery</li> </ol>
![Page 13: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/13.jpg)
Combine and Nest Lists
• Always remember to confirm that you have closed each list when nesting lists
– Use proper indentation is the key to avoid the mistake of missing the closing tags
3/11/2020 13
![Page 14: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/14.jpg)
Style Lists
Sample Property and Value Description Possible Values
list-style-image: url(bullet.gif)
Change the appearance of the bullet by replacing it with an image.
Specify the location of image (URL).
list-style-position: inside Identifies the indentation of additional line in list items.
inside : lines after the first are not indented outside: all lines in the item are indented.
list-style-type: decimal Changes the appearance of the bullet or characters at the beginnings of each list item.
None, disc, circle, square, decimal, lower-roman, upper-roman,...
3/11/2020 14
![Page 15: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/15.jpg)
Customize the bullets
• Example: create a list on a web page in which each item is preceded by an image of a star. – Non-CSS way:
<dd><img src=“star.gif” width=“12” height=“12” alt=“star”> The World Wide Web Consortium was created in 1994.</dd>
– CSS way (preferred):
<style type=“text/css”>
li {list-style-image: url(star.gif);}
</style>
3/11/2020 15
![Page 16: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/16.jpg)
Customize the Spacing
• Two properties are used to adjust the indentation – by affecting the spacing around each item in the list and around the list in general
– Margin property
– Padding property
margin-left : 0;
padding-left : 0;
margin: 0;
Padding: 0;
3/11/2020 16
![Page 17: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/17.jpg)
Customize the Spacing
– When attached to the ul or ol tag the margin property affects the space around the entire list
– When it is used with the li tag the margin property alters the space around each individual list item
– It is important to test the HTML pages in a variety of browsers to make sure everything displays as intended whenever you alter the spacing around your lists and list items
• Some older versions in particular have trouble properly displaying lists with altered spacing
3/11/2020 17
![Page 18: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/18.jpg)
Customize the entire layout
• Vertical Navigation
• Horizontal Navigation
They can be used as navigation bar
3/11/2020 18
![Page 19: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/19.jpg)
Vertical Navigation
<ul id=“navlist”>
<li class=“active”>Home</li>
<li><a title=“LINK: School calendar” href=“…”> School calendar </a></li>
<li><a title=“LINK: Check out the school day weather” href=“…”>Today’s school weather</a></li>
<li><a title=“LINK: Class notes for each grade level” href=“…”>Class notes and supply list</a></li>
<li><a title=“LINK: News for parents” href=“… ”>Information for parents</a></li>
</ul>
3/11/2020 19
![Page 20: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/20.jpg)
Vertical Navigation - Style
<style type=“text/css”> body { font-family: font-size:10pt;} #navlist { width: 250px; margin-left : 0; padding-left :0; text-align: center;} #navlist li { list-style : none; margin: 0; border-top: 1px solid #666;} </style>
3/11/2020 20
![Page 21: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/21.jpg)
Horizontal Navigation
<ul id=“navlist”>
<li class=“active”>Home</li>
<li><a title=“LINK: About Us” href=“aboutus.html”>About Us</a></li>
<li><a title=“LINK: Services” href=“services.html”>Services</a></li>
<li><a title=“LINK: Clients” href=“clients.html”>Clients</a></li>
<li><a title=“LINK: Contact Us” href=“contactus.html”>Contact Us</a></li>
</ul>
3/11/2020 21
![Page 22: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/22.jpg)
Horizontal Navigation - Style
<style type=“text/css”>
body { font-family:
font-size:10pt;}
#navlist { margin: 0;
padding :0;
text-align: center;}
#navlist li { list-style : none;
display: inline}
</style>
– Display: the display property specifies the type of box used for an HTML element. • Value: inline / block / initial / inherit / none / …
3/11/2020 22
![Page 23: New Chapter 10 · 2020. 3. 12. · Chapter 10 . ACS-1809-051 – Slides Used In The Course ... Hypertext Markup Language is the authoring language used ... 3/11/2020 10](https://reader031.vdocument.in/reader031/viewer/2022011922/60455a40973ffc22fd5b0d12/html5/thumbnails/23.jpg)
Questions?