UNORDERED LISTS By J.R. Basham.

Slides:



Advertisements
Similar presentations
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties-- List properties –Table properties-- Classification properties.
Advertisements

LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
Advance CSS (Menu and Layout). CSS Navigation MENU.
J ENWARE Chapters 14 & 15 Learning Web Design, Fourth Edition by Jennifer Niederst Robbins Copyright © 2012.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Unit 20 - Client Side Customisation of Web Pages
COS 125 DAY 21. Agenda  Assignment 6 due  Assignment 7 is posted Assignment 7 Due April 2PM  Left to do 1 Assignments (8 total)  Due May 2 3.
COS 125 DAY 23. Agenda Assignment #6 Graded 8 A’s, 4 B’s and 1 D Biggest Problem area was layout Assignment #7 Posted Due April 20 Two (one?) more to.
COS 125 DAY 20.
Purpose Tags are the key to marking up content on your HTML page. It’s the tags that mark up sections of the page and are defined (aesthetically) on the.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
Cascading Style Sheet Basics Pepper. Looking at the HTML See the surrounding tags See head, body, paragraph, header See the ending tags See the list.
WDV 101 Intro to Website Development
Tutorial #4 Formatting Text and Links. Tutorial #3 Review - CSS CSS format Selector { property1: value1; /* Comments */ } Embedded, In-Line, and External.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
WRA HTML & CSS – BUILDING WEBPAGES. TODAY’S AGENDA Review: external stylesheets Review: transforming a list Intro: the object Intro: the.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
HTML.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
CONTROLLING Page layout
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 15: Lists.
Unordered Lists Need to make a list of items that aren't numbered? You need.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 4 Formatting Text and Links.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
Basic Webpage Design Formatting output using Unordered List and Ordered List tag.
CSE 102 Introduction to Web Design and Programming
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheets for layout
CSS.
CSS Layouts CH 13.
LAB Work 01 MBA 61062: E-Commerce
CSS Layouts: Positioning and Navbars
Organizing Content with Lists and Tables
Fix the CSS syntax errors below
Introduction to the Internet
Breaking the mold with CSS
Advanced CSS BIS1523 – Lecture 20.
Ordered & Unordered Lists in HTML
HTML Lists CS 1150 Fall 2016.
Chapter 6 Lists.
Cascading Style Sheets (Layout)
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
How to customize your Microsoft SharePoint Online website
Laying out a website using CSS and HTML
Fixed Positioning.
COS 125 DAY 23.
HTML ELEMENTS Ms. Olifer.
How to customize your Microsoft SharePoint Online website
Web Development & Design Foundations with HTML5
HTML Lists CS 1150 Spring 2017.
New Semantic Elements (Part 2)
Web Development & Design Foundations with HTML5
Laying out Elements with CSS
COS 125 DAY 13.
Digging in a little deeper
Introduction to Styling
Presentation transcript:

UNORDERED LISTS By J.R. Basham

The Three Types of Lists Lists are a part of everyday life. To-do lists determine what to get done. Navigational routes provide turn-by-turn lists of directions. Recipes provide lists of ingredients and lists of instructions. With a list for nearly everything, it’s easy to understand why they are also popular online. When we want to use a list on a website, HTML provides three different types to choose from: unordered, ordered, and description lists. Choosing which type of list to use—or whether to use a list at all—comes down to the content and the most semantically appropriate option for displaying that content. Unordered Lists <ul><li></li></ul> Item Ordered Lists <ol><li></li></ol> First Item Second Item Third Item Fourth Item Description Lists <dl><dd></dd><dt></dt></dl> The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag describes each term: Cat - A small domesticated carnivorous mammal with soft fur, a short snout, and retractile claws. It is widely kept as a pet or for catching mice, and many breeds have been developed.   

Now that you know what the three types are… When do you use unordered lists? An unordered list is a list in which the order of the list items does not matter. Some common places you can use unordered lists • When you create a navigation bar • When you want to list out ideas • When you are creating a image gallery • Listing out a side bar with categories • E-commerce stores use lists for products

Do’s and Don’ts Do’s Put the <ul> tag at the beginning and the </ul> closing tag at the end Put the <li></li> tags inside the <ul> opening and closing tag You can nest <ul><ol><dd> tags within a <li> tag to make additional sub menu lists You can put <div> or <nav> opening and closing tags outside the <ul> tags Don’ts Lone wolf <li> tags default to <ul> tags Do not put a <div> tag inside the list. Example: <ul> <div> <li></li> </div> </ul>  

How do you do it? Result Grocery Lists Apples Oranges Bread Milk An unordered list starts with the <ul> tag. Each list item starts with the <li> tag. The ul element opens and closes an unordered list. The items on the list are contained between list item, li, tags. The list items will be marked with bullets (small black circles) by default: HTML <h3>Grocery Lists</h3> <ul> <li>Apples</li> <li>Oranges</li> <li>Bread</li> <li>Milk</li> <li>Chicken</li> </ul>   Result Grocery Lists Apples Oranges Bread Milk Chicken

How do you get rid or change the default black discs? The CSS list-style-type property is used to define the style of the list item marker: Here common style type options: list-style-type: disc; list-style-type: circle; list-style-type: square; list-style-type: decimal; list-style-type: none; For Full list of options go to the link below https://developer.mozilla.org/en- US/docs/Web/CSS/list-style-type < ul style="list-style-type: square" > <li>Apples</li> <li>Oranges</li> <li>Grapes</li> </ul>

Using an image for the marker You may feel that you do not have enough options in the style types that are available. You can also create a marker using an image. HTML <ul> <li>Orange</li> <li>Green</li> <li>Blue</li> </ul>   CSS <style> li { background: url("arrow.png") 0 no-repeat; list-style-type: none; padding-left: 12px; } </style> Result NOTE: You can also use: “list-style-image: url("arrow.png ");” The difference is as soon as you display the list “inline” it disappears. In that case use “background: url()” instead.

List style position HTML <ul> <li>Cupcakes...</li> <li>Sprinkles...</li> </ul> CSS ul { list-style-position: inside; } Cupcakes – One of the best desserts known to ever exist, especially when topped with cream cheese frosting Sprinkles – One of the most popular toppings for cupcakes, adding that extra bit of decoration and sugar

Displaying a List HTML <ul> <li>Orange</li> <li>Green</li> <li>Blue</li> </ul> CSS li { display: inline-block; margin: 0 10px; } RESULT Orange Green Blue

Floating Lists HTML <ul> <li>Home</li> <li>Rivers</li> <li>FAQ</li> </ul> CSS li { float: left; margin: 0 10px; list-style-image: url("img/phone.png"); } footer { clear: both; RESULT  

SOURCES https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type http://www.w3schools.com/html/html_lists.asp http://html.com/lists/ http://www.google.com definitions http://learn.shayhowe.com/html-css/creating-lists/