Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.

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.
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
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
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Today CSS HTML A project.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
1 Dreamweaver CS5 intermediate class by Cookie Setton Build a CSS website WITHOUT TABLES Just when you thought you were starting to understand HTML coding,
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.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
AD Intermediate Computer Graphics | spring 2008 | Daria Tsoupikova | School of Art and Design | UIC CSS Cascading Style Sheets.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
4.01 Cascading Style Sheets
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
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.
School of Computing and Information Systems CS 371 Web Application Programming HTML The language of the Web.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
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.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
XHTML and CSS. The Browser The browser is not print!
Introduction to CSS September 20, Introduction Cascading Style Sheets (CSS) –Separation of structure from presentation CSS guide and tutorial.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
HTML with Style!. What is a Style Sheet? CSS? Style Sheet CSSCascading Style Sheets A “language” for defining style rules. Rules that tell the browser.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
Cascading Style Sheets (CSS) Part II IT210: Web-based IT.
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
HTML 5 AND CSS Dr Mohd Soperi Mohd Zahid Semester /16.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
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) Internal Style Sheets Classes
Working with Cascading Style Sheets
CSS for Styling By Jinzhu Gao.
Cascading Style Sheets™ (CSS)
4.01 Cascading Style Sheets
CSS: Cascading Style Sheets
Cao Yuewen SEEM4570 Tutorial 03: CSS Cao Yuewen
Cascading Style Sheets (Layout)
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
The Internet 10/25/11 XHTML Tables
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Styles and the Box Model
MORE Cascading Style Sheets (The Positioning Model)
Software Engineering for Internet Applications
DynamicHTML Cascading Style Sheet Internet Technology.
Web Development & Design Foundations with H T M L 5
DynamicHTML Cascading Style Sheet Internet Technology.
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
The Internet 10/20/11 CSS Layout
4.01 Cascading Style Sheets
Presentation transcript:

Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1

Recall from SFDV  Hypertext Markup Language (HTML) Semantic markup Content Logical structure Meaning  Cascading Style Sheets (CSS) Presentation Appearance 2

HTML document structure 3 <! DOCTYPE HTML PUBLIC " -// W3C // DTD HTML 4.01// EN" " http :// org /TR/ html4 / strict. dtd ">..

HTML standard  DTD HTML 4.01 Strict, Transitional or Frameset XHTML 1.0 Strict, Transitional or Frameset HTML 5 - still a draft  Validator  World Wide Web Consortium (W3C) 4

HTML elements and attributes  Block elements:,,  Inline elements:,  Headings,,...  Paragraph  Anchor  Image 5 Search the Web.

HTML tables 6 Table caption Header 1 Header 2 Cell 1 Cell 2 Cell 3 Cell 4  Remember, tables are not for page layout!!!

HTML forms 7 A group of controls : Text box Check 1 Check 2

HTML and CSS Three ways to include CSS in an HTML document:  External - style sheet is a separate le linked from HTML document  Embedded - the style resides in the header of the HTML document  Inline - inside the tags of the corresponding element 8

CSS standard  CSS  CSS 3 - still a draft  Validator - 9

CSS selectors, properties and values 10 /* CSS comments. */ selector { property : value ;... } /* All paragraph and level 1 header elements */, { margin : 10 px; } /* All div elements with attributed class =" nav " */ div. nav { width : 10 em; } /* Elements with id=" lname " */ # lname { border : 1px solid #8 c3ba2 ; } /* Pseudoselector when hovering over an anchor */ a: hover { color : # ff0000 }

CSS box model 11 margin border padding background width height

CSS standard  Normal flow (default) - position: static;  Relative - position: relative;  Absolute - position: absolute;  Fixed - position: fixed;  Floating - float: left; or float: right;  Remember vertical margin collapse? 12

CSS cascading and inheritance 13 Cascading order Lowest priority Highest priority StylesheetBrowser default User Author LocationExternal Embedded Inline SelectorsContextual Class Id Inheritance tree Not all properties are inheritable Body divpul li em

Catch up... ...if you're not familiar with any of the concepts mentioned in this lecture.  You'll find great tutorials at  More tutorials at  Review any other textbook on HTML and/or CSS - there are many. 14