Essentials of HTML Class 4 Instructor: Jeanne Hart

Slides:



Advertisements
Similar presentations
Tables Feb. 14, Tables Great way to organize and display information Laid out in columns and rows Think of an excel spreadsheet Defined with tag.
Advertisements

Cascading Style Sheets CSS. Learning outcome CSS – Introduction – Motivation – Advantages – Implementation – Classes & Ids – and – General Model – Validation.
Table, List, Blocks, Inline Style
HTML popo.
Introduction to HTML & CSS
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style.
Cascading Style Sheets
Cascading Style Sheets
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
Introduction to CSS.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
4.01 Cascading Style Sheets
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
Tags through Forms. This element is required for all HTML pages It must be at the top of every page of every website We’ll see later on why it is important.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Review HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Chapter 3 Working with Text and Cascading Style Sheets.
Class 3 – Creating Lists In this lesson, you will learn to use HTML to organize your text into lists.
The Characteristics of CSS
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Lesson 2 Adding more content to your web page. Thanks to Richard Hudnutt, Luella HS.
CO1552 – Web Application Development Cascading Style Sheets.
INTRODUCTION TO CSS. OBJECTIVES: D EFINE WHAT CSS IS. K NOW THE HISTORY OF CSS. K NOW THE REASON WHY CSS IS USED. CSS SYNTAX. CSS ID AND CLASS.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
CSS Basic (cascading style sheets)
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
IT Introduction to Website Development Welcome!
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Text and Cascading Style Sheets.
DIV, Span, CSS.
Cascading Style Sheets CSS. Source W3Schools
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
Cascading Style Sheets
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
1 CSS محمد احمدی نیا 2 Of 21 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements 
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Group 9: Through examples, explain how to build a css navigation bar. Presented by: Daniel Ku, Matt Iannacci & Iphia Henry.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Cascading Style Sheets (CSS)
4.01 Cascading Style Sheets
CASCADING STYLE SHEET CSS.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Introduction to CSS.
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Web Design & Development
4.01 Cascading Style Sheets
Presentation transcript:

Essentials of HTML Class 4 Instructor: Jeanne Hart

Creating Lists In this lesson, you will learn to use HTML to organize your text into lists.

Lesson 6 – Creating Lists Types of Lists One way to organize the text in your Web pages is with lists.

Lists con’t In addition to the obvious benefit of being able to list items on a page, they also provide a design benefit by enabling you to break up long pages of ordinary paragraphs. HTML recognizes the following list types and has tags that correspond to each:

Lists con’t  Bulleted (unordered) lists  Numbered/lettered (ordered) lists  Definition lists

Tip You should use ordered lists when the items in the list must be followed in a specific order, and use unordered lists when they do not. You generally use definition lists for terms and their definitions, but they can have other uses as well.

Bulleted List A bullet (usually a solid circle) appears in front of each item in an unordered list. HTML automatically creates the bullet when you use the unordered list tag ( ) together with the list item tag ( ).

Lists con’t Although the following sample HTML shows each list item as a single line of text, your list items can be as long as you want:

Bulleted Lists con’t first item in the list second item in the list third item in the list

Formatting Bulleted Lists HTML automatically adds a solid circle in front of each list item as a bullet, but you have two other choices. Using style sheet tags you can select one of two other bullet types: a square or a hollow circle. You can see how your HTML document would look if you chose to use a square bullet instead of the standard solid circle.

Lists Con’t Bullet Options head> a list item another list item a list item another list item

Very Important! What is going to happen if you don’t close the ul tag?

Numbered Lists If the items in your list should follow a specific order, as in recipes or instructions, you want to use the ordered list tag ( ). With this tag, HTML automatically numbers or letters your items for you. Here's an example:   first item in the list  second item in the list  third item in the list 

Lists con’t Did you notice how similar the two list samples are? Both the and tags call for the individual list items to be identified with the tag. Like the tag, HTML has an automatic style for the list items within the tag. HTML automatically numbers the items with the familiar Arabic numerals (1, 2, 3, and so on). What's more, it automatically renumbers the list items if you decide to add or delete items later.

Formatted Numbered Lists You can use style sheets for formatting ordered lists if you want anything a little more complicated than what I have shown here.

Setting a Start Value There might be times when you'd like to start an ordered list with a number other than one. Many times when writing instructions, you need to interrupt a numbered list with some other material (such as text or examples), and then continue with the numbered list.

Lists con’t To do this in HTML, close the first list, add the additional materials that you need, and then start a new list, using the list item's value attribute to set the beginning number for the new list.

Start value con’t Ordered Lists It's Payday! Turn in your timecard. Receive your paycheck. Endorse your paycheck. Congratulations! You're almost there. Put the check in the bank.

Definition Lists If you need it, HTML has one more type of list available to you: the definition list, which uses the tag. Rather than using the usual tag to specify the items in the list, this type of list uses the tag (for definition terms) and the tag for their definitions. Following is an example of the HTML for a definition list. The Definition Term Is defined below the term.

Summary In this lesson, you've learned: HTML recognizes three different list types: unordered (bulleted), ordered (numbered), and definition. Rather than the default bullet style (a solid circle), style sheets enable you to select three other bullet types: a square, a hollow circle, or an image of your own.

Creating Tables In this lesson, you will learn how to build tables using HTML, and how to control the layout and appearance of a Web page using tables.

Simple Tables Traditionally, tables have been used for displaying tabular data (such as numbers) in rows and columns. The flexibility of HTML, however, enables Web developers to create tables that display more than just numbers.

Caution Although HTML tables look similar to your favorite spreadsheet, HTML tables don't perform mathematical functions.

Tables con’t HTML tables are not difficult to create, but they do require some organization. All HTML tables begin with the opening tag and end with the closing tag. In between those tags are three other tags to be aware of, as follows:

Tables con’t defines a horizontal row. defines a data cell within that row. specifies a data cell as a table heading. In newer browsers, a table heading cell is formatted as centered and bold.

Tip The World Wide Web Consortium's Web site ( html40/struct/tables.html) has detailed descriptions of all the attributes available for tables, as well as examples of how you can use them. html40/struct/tables.html

Advanced Tables HTML contains two more attributes that you should be aware of when formatting tables. The colspan (which causes a cell to span two or more columns) and rowspan (which causes a cell to span two or more rows) attributes are invaluable when creating complex tables. Since this is an Essentials of HTML class I won’t be going over these two advanced tags.

Tip Even if you don't plan to place a border around the cells in your table, it's much easier to see how your HTML commands are interpreted by your Web browser when you have the borders turned on ( ).

Style Sheets HTML was never meant to control the form or appearance of Web pages. It's a language that defines the structure and function of elements on a page. It lets the Web browser decide how those elements should actually appear.

What can Style sheets do for me? 1.You can separate form and structure. 2.You can make smaller, faster pages. 3.You can maintain or update many pages

1. You can Separate Form from Structure HTML was never meant to control the form or appearance of Web pages. It's a language that defines the structure and function of elements on a page. It lets the Web browser decide how those elements should actually appear.

2. You can make smaller, faster pages Stylesheets are simple text, just like HTML. With CSS, you can do things that you previously had to resort to spacer GIFs for. Cascading stylesheets mean fewer table tags and other HTML tags cluttering up your code.

3. You can maintain or update many pages faster and easier. Without stylesheets, if we wanted to update the font used for body text across my entire site, we'd have to manually edit each page. The whole point of stylesheets is to separate form and structure.

Three Types of Style Sheets In-line: styles for specific tags on a page  e.g., change a paragraph to blue  e.g., change h1 tag to 18 pt. (normally 24pt); Embedded: rules that apply to a specific page; External/Linked: set up styles in a separate css page and apply to all pages.

Rules Style sheets contain one thing: rules. Each rule is a formatting instruction that  applies to a part of your Web page. A style sheet can contain a single rule, or it can hold dozens (or even hundreds) of them.

Defining the Rules Style sheet rules are made up of  selectors (the HTML tag that receive the style) and  declarations (the style sheet properties and their values). In the following example, the selector is the body tag and the declaration is made up of the style property (background) and its value (black). This example sets the background color for the entire html to black. body {background:black}

Rules con’t In a style sheet, the HTML tag is not surrounded by brackets as it would be in the HTML document, and the declaration is surrounded by curly braces. Declarations can contain more than one property.

Inline Styles In inline style loses many of the advantages of style sheets by mixing content with presentation. Not only that it is not recommended by the W3C. The example shows how to change the color and the left margin of a paragraph: This is a paragraph.

Embedded Style Sheet The style properties are includedwithin Embedded Style Sheet An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section of an HTML page, by using the tag, like this: hr {color:sienna;} p {margin-left:20px;} body {background-image:url("images/back40.gif");} the tags) at the top of the HTML document. A style assigned to a particular tag applies to all those tags in this type of document.

External/Linked Style Sheet An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the tag. The tag goes inside the head section: An external style sheet can be written in any text editor. The css file should not contain any html!