Web Design and Development ACS Chapter 11. Creating Lists 11/16/2017 1

Similar documents
GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

COMS 359: Interactive Media

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets


3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

1 of 7 11/12/2009 9:29 AM

Adding CSS to your HTML

Appendix D CSS Properties and Values

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

BIM222 Internet Programming

Hyper Text Markup Language HTML: A Tutorial

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

First Name Last Name CS-081 March 23, 2010 Midterm Exam

ITNP43: HTML Lecture 4

Introduction to WEB PROGRAMMING

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Introduction to Web Tech and Programming

Programmazione Web a.a. 2017/2018 HTML5

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

CSS Cascading Style Sheets

CMPT 165: More CSS Basics

CSS: Lists, Tables and the Box Model

Page Layout Using Tables

Web Engineering CSS. By Assistant Prof Malik M Ali

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

CSS: Cascading Style Sheets

HTML. Hypertext Markup Language. Code used to create web pages

Introduction to Multimedia. MMP100 Spring 2017 thiserichagan.com/mmp100

CSC 121 Computers and Scientific Thinking

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

ID1354 Internet Applications

CSS: The Basics CISC 282 September 20, 2014

Assignments (4) Assessment as per Schedule (2)

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

Fundamentals of Web Technologies. Agenda: HTML Links 5/22/2017. HTML Links - Hyperlinks HTML Lists

Module 2 (VII): CSS [Part 4]

HTML and CSS COURSE SYLLABUS

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

A Balanced Introduction to Computer Science, 3/E

Web Design and Development Tutorial 03

By Ryan Stevenson. Guidebook #3 CSS

Using Advanced Cascading Style Sheets

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

HTML TUTORIAL ONE. Understanding What XHTML is Not

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Tutorial 3: Working with Cascading Style Sheets

COMS 359: Interactive Media

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

INTRODUCTION TO HTML5! HTML5 Page Structure!

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Html basics Course Outline

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Networks and Web for Health Informatics (HINF 6220) Tutorial 8 : CSS. 8 Oct 2015

CSS Cascading Style Sheets

Reading 2.2 Cascading Style Sheets

HTML Hints & Tips. HTML is short for HyperText Markup Language.

Chapter 2 Creating and Editing a Web Page

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

More about HTML. Digging in a little deeper

Zen Garden. CSS Zen Garden

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

CSE 154 LECTURE 3: MORE CSS

Creating a CSS driven menu system Part 1

Part 1: HTML Language HyperText Make-up Language

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Introduction to using HTML to design webpages

Cascading Style Sheets Level 2

Introducing Cascading Style Sheets. Cascading Style Sheet Basics Creating Styles Using Styles Manipulating Styles Text Formatting with CSS

Chapter 3 Style Sheets: CSS

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

8a. Cascading Style Sheet

HTMLnotesS15.notebook. January 25, 2015

Lab 2: Movie Review. overview.png background.png rottenbig.png rbg.png fresh.gif rotten.gif critic.gif

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

FUNDAMENTALS OF WEB DESIGN (405)

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

CSS. M hiwa ahamad aziz Raparin univercity. 1 Web Design: Lecturer ( m hiwa ahmad aziz)

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Fundamentals of Web Technologies. Agenda: CSS Layout (Box Model) CSS Layout: Box Model. All HTML elements can be considered as a box or a container

Styles, Style Sheets, the Box Model and Liquid Layout

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

Computer Programming. Dr. Deepak B Phatak Dr. Supratik Chakraborty Department of Computer Science and Engineering IIT Bombay

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

1. Lists. 1.1 Unordered Lists. Subject Code 10CS73. Unit 2 XHTML 2, CSS. Subject Programming the Web

ADOBE 9A Adobe Dreamweaver CS4 ACE.

Announcements. Paper due this Wednesday

Web Design and Development ACS-1809

Transcription:

Web Design and Development ACS-1809 Chapter 11 Creating Lists 11/16/2017 1

Creating Lists Ordered Lists Unordered Lists Definition Lists Combination and Nesting of Lists Style Lists 11/16/2017 2

Ordered Lists My favorite fruits are: 1. Raspberry 2. Strawberry 3. Apple HTML Code: My favorite fruits are: <ol> <li>raspberry</li> <li>strawberry</li> <li>apple</li> </ol> 11/16/2017 3

Ordered Lists Type attribute To change the type of ordered list add the type attribute and its value to the opeening ol tag. <ol type= I > <li> Introduction</li> <li>understanding HTML</li> <li>basic Page Structures</li> </ol> I. Introduction II. Understanding HTML III. Basic Page Structure 11/16/2017 4

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,... 11/16/2017 5

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> c. Color d. Working with text e. Working with links 11/16/2017 6

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> c. Color d. Working with text g. Working with links 11/16/2017 7

Unordered Lists An unordered list looks like: Red Green Blue HTML Code: <ul> <li>red</li> <li>green</li> <li>blue</li> </ul> 11/16/2017 8

Definition Lists W3C HTML The World Wide Web Consortium was created in 1994 to develop standards and protocols for the World Wide Web. Hypertext Markup Language is the authoring language used to create documents for the World Wide Web. 11/16/2017 9

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> 11/16/2017 10

Combine and Nest Lists I. Introduction II. Part 1 A. Description B. Example 1. Reference 1 2. Reference 2 III. Part 2 IV. Summery HTML Code <ol type= I > <li>introduction</li> <li>part 1 <ol type= A > <li>description</li> <li>example <ol type= 1 > <li> Reference 1</li> <li> Reference 2</li> </ol> </li> </ol> </li> <li>part 2</li> <li>summery</li> </ol> 11/16/2017 11

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 11/16/2017 12

Style Lists Sample Property and Value list-style-image: url(bullet.gif) list-style-position: inside Description Change the appearance of the bullet by replacing it with an image. Identifies the indentation of additional line in list items. Possible Values Specify the location of image (URL). 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,... 11/16/2017 13

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: <style type= text/css > li {list-style-image: url(star.gif);} </style> 11/16/2017 14

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; 11/16/2017 15

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 11/16/2017 16

Customize the entire layout Vertical Navigation Horizontal Navigation They can be used as navigation bar 11/16/2017 17

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> 11/16/2017 18

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> 11/16/2017 19

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> 11/16/2017 20

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; </style> display: inline} Display: the display property specifies the type of box used for an HTML element. Value: inline / block / initial / inherit / none / 11/16/2017 21