1 Mastering the Internet and HTML Lists and List Tags.

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

HTML 4 Hypertext Markup Language Tables, Lists & Links Science & Art Multimedia.
HTML popo.
Web Development & Design Foundations with XHTML
Teppo Räisänen LIIKE/OAMK 2010
Chapter 2 HTML Basics Key Concepts
Anne McGrath 16 th February  Review of what we have learned so far.  Angled brackets surround HTML tags.  The words between the angled brackets.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
Lists, Lists, & Lists Unordered List Ordered List Definition List.
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
Web Page Development Identify elements of a Web Page Start Notepad
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Developing a Basic Web Page with HTML
Introduction to HTML Lists Why Use Lists? Lists are one way to organize information for easy access. People are familiar with using lists to organize.
1 HTML Basic HTML. 2 Outline Goal Objectives Introduction Design of Web pages Markup language Develop Web pages Document structure HTML tags Document.
HTML Notes Chapters 1--6 Codes used in creating HTML documents are called tags. Tags are always enclosed in left ( ) angle brackets. Tags can be upper.
SSome HTML tags allow you to specify a variety of options, or attributes, along with the basic tag itself. For example, when you begin a paragraph with.
1 Mastering the Internet and HTML Tables and Table Tags.
Web page - A Web page is a simple text file that contains HTML tags (code) that describe what should be displayed on the browser. -The Web browser interprets.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
Class 3 – Creating Lists In this lesson, you will learn to use HTML to organize your text into lists.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
1 Mastering the Internet and HTML Images and Image Tags.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
1.  Describe the anatomy of a web page  Format the body of a web page with block-level elements including headings, paragraphs, lists, and blockquotes.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 4 (through page 110) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
Unit 1 Changing the Appearance of Text. TITLE CORNELL NOTES TOPIC: NOTES: Summary: HTML Hypertext Markup Language 1 st and last tag on a page Tags Tags.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Introduction to HTML: Part 1 Outline Introduction Elements and Attributes Editing HTML Common Elements Headers Images Unordered Lists Nested and Ordered.
1 Web Development Lecture # 11 Introduction to XHTML (Chapter # 4) It.GulGasht.Com.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
Ordered Lists By Brian Christian. Ordered List Tags You use this tag when you want to start an ordered list. Each list item you write need to start with.
HTML - Examples Be sure to check speaker notes for additional information!
Essentials of HTML Class 4 Instructor: Jeanne Hart
CPT 499 Internet Skills for Educators Session Ten Class Notes.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML, Third Edition--Illustrated Brief 1 HTML, Third Edition Illustrated Brief Unit C Formatting Page Elements with HTML.
Introduction to HTML UWWD. Agenda What do you need? What do you need? What are HTML, CSS, and tags? What are HTML, CSS, and tags? html, head, and body.
1 2/21/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Lists, Fonts, Links, and Preformatted Text.
ECA 228 Internet/Intranet Design I HTML Tags. ECA 228 Internet/Intranet Design I anchor tags Adds a link to the web page Anything placed between the anchor.
The Complete Reference OMT II Mam Saima Gul. * Modern HTML has three basic forms of lists: ordered lists ( ), unordered lists ( ), and definition lists.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 15: Lists.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
1 PROJECT 3 WEB/HTML PROJECT USING NOTEPAD Management Information Systems, 9 th edition, By Raymond McLeod, Jr. and George P. Schell © 2004, Prentice Hall,
© UNT in partnership with TEA1 Web Technologies Introduction to HTML Scripting.
Basic Webpage Design Formatting output using Unordered List and Ordered List tag.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 22 - i-mode Outline 22.1 Introduction 22.2 Japan’s Telecommunications Industry and Infrastructure.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
HTML Basics.
Client-Side Internet and Web Programming
LAB Work 01 MBA 61062: E-Commerce
Organizing Content with Lists and Tables
HTML Formatting.
Ordered & Unordered Lists in HTML
HTML Lists CS 1150 Fall 2016.
Client-Side Internet and Web Programming
HTML Lists CS 1150 Spring 2017.
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Lesson 2: HTML5 Coding.
Presentation transcript:

1 Mastering the Internet and HTML Lists and List Tags

2 Outline Goal Objectives Introduction Unordered list Ordered list Definition list Nested lists Formatting via lists Nontext list items Tutorials FAQs Summary Exercises/Homework

3 Goal This chapter covers lists, their use in Web pages, their types, and their tags. It also covers nested lists, nontraditional (nontext) list items, and formatting via lists.

4 Objectives Introduction Types of lists Formatting via lists Nontext list items HTML tags for lists

5 Introduction Lists allow Web authors to organize and indent text in Web pages Lists could be used to describe components of a product, steps of a procedure, tasks of a plan, and organizational/hierarchical structures HTML supports three types of lists: unordered, ordered, and definition. The difference between these types comes in their rendering

6 Unordered lists Unordered lists itemize information whose order is not important Browsers use one of three symbols to display list items: disk (filled circle), square, or circle The tag creates unordered lists. The tag must close to define the end of the list The tag defines list items of a list. The tag is used inside the tag as many times as there are list items. Its most common attribute is TYPE, which specifies the display symbol of list items. (Cont’d)

7 Unordered lists Example 8.1 Unordered lists (figures 8.1 and 8.2) (removed top part of the tags) Here is my first unordered list First list item Second list item Third list item Fourth list item Here is my second unordered list List item using the disc symbol List item using the circle symbol List item using the square symbol List item using no TYPE attribute (Cont’d)

8 Figure 8.1 Netscape rendering Figure 8.2 MS IE rendering

9 Ordered lists Ordered lists itemize information whose order is important( Browsers use one of three styles to display list items: Arabic numbers (1, 2, …), Latin letters (A, a, B, b, …), or Roman numerals (I, i, II, ii, …) The tag creates ordered lists. The tag must close to define the end of the list The tag defines list items of a list. The tag is used inside the tag as many times as there are list items. Its most common attribute is TYPE, which specifies the display style of list items. (Cont’d)

10 Ordered lists Example 8.2 Ordered lists (removed top part of the tags) This ordered list uses Arabic (default) numbers First list item Second list item Third list item Fourth list item This ordered list uses uppercase Latin letters List item using uppercase Latin letter This ordered list uses lowercase Roman numerals List item using lowercase Roman numeral (figures 8.1 and 8.2) (Cont’d)

11 Figure 8.3 Netscape rendering Figure 8.4 MS IE rendering

12 Definition lists Definition lists define terms A definition list consists of term/definition pairs The tag creates definition lists. The tag must close to define the end of the list The and tags define the term and definition respectively. These tags are used inside the tag as many times as there are list items. (Cont’d)

13 Definition lists Example 8.3 Definition lists A Web page with definition lists <FONT COLOR="blue">Web page with two definition lists This definition list uses DT/DD pairs. Term1 Here is the definition of the first term Term2 Here is the definition of the second term Term3 Here is the definition of the third term This definition list uses DT, DT, DT followed by DD, DD, DD. Term1 Term2 Term3 Here is the definition of the first term Here is the definition of the second term Here is the definition of the third term (figure 8.5) (Cont’d)

14 Figure 8.5 Definition lists

15 Nested lists Lists may be nested to represent multiple levels of hierarchies The three types of lists (unordered, ordered, and definition) may be nested together When we nest lists, we make one or more item of a list an entire new list There is no limit on the levels of nesting (Cont’d)

16 Nested lists Example 8.4 Nested lists A Web page with nested lists Web page with three nested lists Here is my three-level nested list First-level list item 1 First-level list item 2 Second-level list item 1 Second-level list item 2 Second-level list item 3 Third-level list item 1 Third-level list item 2 Third-level list item3 Second-level list item 4 First-level list item 3 Term1 Definition Term 1 Term2 Definition of Term 2 Term3 Definition of Term 3 First-level list item 4 (figure 8.6) (Cont’d)

17 Figure 8.6 Nested lists

18 Formatting via lists Web authors may list tags to format Web pages List tags are used to indent text The tags that produce indentation effects are,, and (Cont’d)

19 Formatting via list tags Example 8.5 Formatting via list tags (shortened) Using the DT tag does not indent text This text is indented by a DT tag Using the DD tag indents text once This text is indented by a DD tag Nesting the UL and the DD tags indents text twice This text is indented by a UL tag and a DD tag. This text is indented by a UL tag and a DD tag. This text is indented by nesting five UL tags. (figure 8.7) (Cont’d)

20 Figure 8.7 Formatting via list tags

21 Nontext list items Items of a list are traditionally text HTML supports nontext list items such as hyperlinks, images, video, audio, etc. Example 8.6 Nontext list items Non-text list items Creating nontext list items Here are my nontext list items (Cont’d)

22 Nontext list items This is a traditional list Traditional list item List with hyperlinks Northeastern University Prentice Hall publishing Use a search engine Mix text and non-text list items Traditional list item Example 8.1 Web page Traditional list item Example 8.2 Web page (figure 8.8) (Cont’d)

23 Figure 8.8 Nontext list items

24 Tutorials Tutorial A definition list for marketing (top tags are not shown) Great value For as little as $50 a month, you have access to 10 sports programs which include swimming, tennis, racket ball and family programs. Easy enrollment All it takes is a phone call. No application to fill or history to give. Call us 8:00 a.m. - 10:00 p.m. Access to membership You get to meet over 500 members in our monthly parties. Parties are fun for everyone including children. Friendly service Our courteous staff are available to help you with any of your needs or to answer your questions.

25 Tutorials Tutorial A definition list for markup (shortened from the top) Student Excuse me Professor; I have a question. Professor Certainly; what is the question? Student How can you change text color in HTML? Instructor You can use the FONT tag or style sheets. Student Thank you Professor. Professor You are welcome.

26 Tutorials Tutorial Hierarchical structure (shortened from top) Organization structure Organization structure of a college Here is the structure of a college in a university Dean's office Dean Associate dean Assistant dean Staff Staff 1 Staff 2 Staff 3 Department Chairman Associate chairman Faculty Group 1 Group 2 Group 3 Staff Graduate students Undergraduate students (figure 8.11) (Cont’d)

27 Figure 8.11 Organization structure

28 FAQs Q: Why does my browser not display the lists as I expect? – A: This is usually due to the improper closing of the list tags, especially for nested lists. Check all the list tags, and make sure they are closed at the right locations. Q: How can I get better control of list formatting, for example numbering, indenting, and so forth.? – A: Style sheets allow better control of list formatting. (Cont’d)

29 FAQs Q: What is the difference between ordered and unordered lists? – A: Both types are rendered in an identical manne,r except that browsers use numbers for items of ordered lists and symbols for items of unordered lists. Q: Can an ordered list continue list numbering automatically from a previous list? – A: No. Ordered lists cannot hide numbering of some list items, either.

30 Summary – Lists allow Web authors to organize and indent text in Web pages – HTML supports unordered, ordered, and definition lists – Unordered lists itemize information whose order is not important. The HTML tag is – Ordered lists itemize information whose order is important. The HTML tag is – Definition lists define terms. The HTML tag is – and tags need tag, while tag needs and tags to define list items – List items can be any HTML element – Lists may be nested, and may be used for formatting

31 Exercises Problem 8.1. Create an unordered list of the names of 10 people. – Solution strategy: Follow example 8.1. Use a text editor to write and debug the HTML code. Use a browser to display the results (Cont’d)

32 Unordered list of ten names A list of ten names Abe Zeid John Smith Linda Brown Adam Jacocbs Mary Ann Wood Kathy Shnider James Hackley Cindy Smile George Jones Sandra Michaels

33 Problems Problem 8.7 Use a definition list for marking up dialogs between three people. – Solution strategy: Use a text editor to write the HTML code. Use a browser to test it (Cont’d)

34 Using definition List for marking up dialogs between three people Recording three people chat A conversation takes place in a ski resort between three skiers. They are advanced skiers. The conversation is recorded in this Web page. First skier How long have you been skiing? Second skier Since I was 10. Third skier Since I was 15. Third skier Ski conditions are excellent today. Second skier Sure, they are. First skier Let us all hit the slopes. (Cont’d)

35