CST336, Spring 2015 Cascading Style Sheet & HTML Tables.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Advertisements

Table, List, Blocks, Inline Style
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
Cascading Style Sheets: Basics I450 Technology Seminar Copyright 2003, Matt Hottell.
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Cascading Style Sheets
Today CSS HTML A project.
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.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
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.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา 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.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
4.01 Cascading Style Sheets
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Remember, HTML is all about the meaning of your content Most HTML tags have built-in formatting that apply “meaning” to them and format their content.
HTML Tables. Start of page where we want to place a table.
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.
Bayu Priyambadha, S.Kom. for long documents, you can even have links to other locations in that same document  … where ident is a variable for identifying.
Cascading style sheets (CSS)
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
18 People Surveyed HTML (HyperText Markup Language) HTML “tags” Describes structure Building blocks Headings, paragraphs, lists, links, images, quotes,
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.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
XHTML/CSS Week 3. This Week  Quiz to revise last week (XHTML and DW)  CSS - Part 2  Using HTML Tables.
Essentials of HTML Class 4 Instructor: Jeanne Hart
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything › Text › Lists › Other tables › Pictures › …
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
Cascading Style Sheets CSS. Source W3Schools
26 HTML Tables … surround table … surround each row … surround each cell … like, but bold and centered by default (for table headings) … table title No.
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.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
How To Create HTML Tables. Table Structure General HTML code for a Web Table: table cells table cells.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
CST336, Spring 2015 Week 1: Internet Concepts & HTML Intro.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
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.
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
4.01 Cascading Style Sheets
Organizing Content with Lists and Tables
CSS Layouts: Grouping Elements
>> Introduction to CSS
Cascading Style Sheets (Layout)
CSS.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Cascading Style Sheets - Building a stylesheet
CS134 Web Design & Development
Web Design & Development
Principles of Web Design 5th Edition
Lesson 5: HTML Tables.
Cascading Style Sheets - Building a stylesheet
4.01 Cascading Style Sheets
Cascading Style Sheets III B. Com (Paper - VI) & III B
Presentation transcript:

CST336, Spring 2015 Cascading Style Sheet & HTML Tables

Cascading Style Sheets (CSS) is a language that defines the layout and formatting of a web page. Layout: Positioning, alignment, margin, padding, etc. Formatting: Color, size, font family, background, etc. 2

h1 { color: #0000FF; text-align: center; } CSS Terminology Selector (HTML element) CSS Rule: A rule consists of a selector and its declaration Declaration Each declaration consists of two parts (separated by a colon): A property and a value. 3

Span tag The “ ” tag is used to format any sequence of characters, without adding new lines. For instance: This is part of a sentence Would be displayed as: This is part of a sentence 4

Div tags. The “ ” tag is used to define a “division”, that is, a region or area within a web page. This tag is mainly used to provide the layout of a web page, replacing the use of HTML tables for this purpose. Usually this tag has an “id” associated with it: Note: The tag is a “block” element which means that, by default, it adds a new line after its closing tag. 5

CSS Float The “float” attribute helps to provide the layout to the web page. As its name indicates, it “floats” the HTML elements next to each other. Elements can be floated either to the left or to the right: #navigation_div { float: left; } #mainContent_div { float: right; } 6

HTML Tables HTML tables are used to display data within rows and columns. The syntax is: Header Cell - Defines each row in a table - Defines a column header - Defines each cell 7

HTML Tables: Rowspan and Colspan The Rowspan and Colspan attributes are used for cells to span multiple rows or columns, respectively. 8 Header Row 2 Cell 1 Row 2 Cell 2 Header Row 1 Cell 1 Row 2 Cell 2

HTML Tables: Styles The most common properties and values to style a table are: 9 border-collapse:collapse; vertical-align:top|middle|bottom; border: 1px solid black;

colorpicker.com colorpicker.com – Generates hexadecimal code for all colors - List of CSS properties - Float property - HTML Tables 10

Lab 1: Let’s Save the Earth! Our future on earth is uncertain and our planet is in jeopardy. We face complex problems such as climate change, vast exploitation of natural resources, population growth, scarcity of food and water, rising sea levels, among many others. We must apply Sustainable Development in order to sustain our planet for future generations. Sustainable Development It refers to the development which meets the needs of the present without compromising the ability of future generations to meet their own needs (United Nations report, 1987). You can help! We all can contribute to have a better world if we follow the 3R’s of sustainable development: Reuse – Find new ways to use items instead of throwing them away! Recycle – Separate the items you are disposing of (plastic, paper, glass, organic) Reduce – The best way to prevent pollution is not using materials that cause pollution: bring your own bags to the grocery store, ride a bike, turn off the lights! Click here for more information Main Page Statistics Get Involved! Contact Us Let's Save the Earth!

Lab 1 (cont): Let’s Save the Earth! Global Warming Statistics Rise in the global average surface temperature since the late 19th century0.6 °C Percent of climate scientists who believe global warming is being caused by humans90 % Total rise in sea level over the past 100 years17.5 cm Public Opinion Percent of Americans who believe global warming is very real70 % Percent of Americans who believe global warming is not happening12 % Percent of Americans who believe global warming is caused mostly by human activity54 % Percent of Americans who say they are “somewhat” or “very worried” about global warming 58 % Percent of Americans who say they trust climate scientists as a source of information about global warming 76 % Source: IPCC Synthesis Report, Yale/George Mason, National Geographic. 10/20/2012 Main Page Statistics Get Involved! Contact Us 12

(1) Create your CST336 home page for class projects. (2) Complete the lab exercise on your own. (3) Up to five students will be randomly selected to share their work in the forum. (4). Update your weekly journal.

Questions?