MTA EXAM 98-375 HTML5 Application Development Fundamentals.

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.
© 2010 Delmar, Cengage Learning Chapter 9 Positioning Objects with AP Div Tags.
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Cascading Style Sheets
Part 5 Introduction to CSS. CSS Display - Block and Inline Elements A block element is an element that takes up the full width available, and has a line.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Tutorial 6 Creating Fixed-Width Layouts
Using CSS for Page Layout. Types of HTML Elements Block-Level Element –Creates blocks of content e.g. div, h1..h6, p, ul, ol, li, table, form –They start.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Tutorial 4 Creating Special Effects with CSS
MORE Cascading Style Sheets (The Positioning Model)
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
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.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
Tutorial 4 Creating Special Effects with CSS. XP Objectives Work with CSS selectors Create styles for lists Create and apply class styles Create a rollover.
Understanding CSS Essentials: Content Flow, Positioning, and Styling
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
1 Cascading Style Sheets (CSS) Part 2. 2 The Sources of Style Sheets.
Copyright © Terry Felke-Morris CSS Flow & Positioning 1 Copyright © Terry Felke-Morris.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 7.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 7.
MTA EXAM HTML5 Application Development Fundamentals.
Svetlin Nakov Telerik Corporation
THE BOX MODEL Putting layouts together with CSS. The Box Model  How would you describe a box?  Container?  Tags or elements are “containers”  puts.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  float & clear  display & visibility.
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.
Positioning and Printing Creating Special Effects with CSS.
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.
Web Foundations MONDAY, OCTOBER 7, 2013 LECTURE 7: CSS LINK COLORS, INTERMEDIATE CSS.
Tutorial 4 Creating Special Effects with CSS. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Work with CSS selectors.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Tutorial 4 Creating Page Layouts with CSS
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 6.
IN THE DOCUMENT OBJECT MODEL, EACH LINE OF HTML IS AN ELEMENT (AN OBJECT), ABLE TO HAVE ATTRIBUTES, PROPERTIES AND VALUES. CSS TELLS THE BROWSER HOW TO.
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 8.
Tutorial 4 Using CSS for Page Layout. Objectives Session 4.1 – Explore CSS layout – Compare types of floating layouts – Examine code for CSS layouts –
CSS.
Working with Cascading Style Sheets
Cascading Style Sheets Layout
Cascading Style Sheets Boxes
CSS Layouts: Grouping Elements
>> Introduction to CSS
>> The “Box” Model
>> CSS Rules Selection
Web Systems & Technologies
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Cascading Style Sheets - Building a stylesheet
Objectives Create a reset style sheet Explore page layout designs
Styles and the Box Model
MORE Cascading Style Sheets (The Positioning Model)
Cascading Style Sheets™ (CSS)
Tutorial 4 Creating Special Effects with CSS
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
Cascading Style Sheets - Building a stylesheet
The Internet 10/20/11 CSS Layout
Positioning Boxes Using CSS
Presentation transcript:

MTA EXAM HTML5 Application Development Fundamentals

98-375: OBJECTIVE 3 Format the User Interface by Using CSS

Understand the core CSS concepts LESSON 3.1

In this lesson, you will review the following: Separating presentation from content Managing content flow Managing positioning of individual elements Managing content overflow Basic Cascading Style Sheets (CSS) styling OVERVIEW Lesson 3.1

Why is it important to separate style from content? How does CSS manage positioning elements on a page? How does CSS apply presentation to content? GUIDING QUESTIONS Lesson 3.1

LECTURE Lesson 3.1 Separating Presentation from Content Create content with HTML and style content with CSS. The HTML content and CSS style must be coordinated using HTML tags, and selectors such as ids and classes. Create this sentence: Welcome to the wonderful world of CSS » HTML code: Welcome to the wonderful world of CSS » CSS code: #welcome { font-family: “Tempus Sans ITC”; color: red;} All future HTML tags that use the id=“welcome” will be formatted in the same style.

LECTURE Lesson 3.1 Managing Content Flow Inline and block flow describe the spacing and line breaks for the content included in the tag. A block element, such as a div tag, typically starts a new line and is sized according to the width of the parent container. Examples of block elements:,, An inline element, such as a span, typically does not start a new line and is sized according to the height and width of its own content. Examples of inline elements:,

LECTURE Lesson 3.1 Managing Positioning of Individual Elements Float vs. absolute positioning. A floated element is taken out of the normal flow and pushed to the right or left of the parent element. Elements can float to the right or left. Any element that follows the floated element will flow around the floated element on the other side. An element with absolute positioning is located relative to the upper-left corner of the browser.

LECTURE Lesson 3.1 Managing Content Overflow The overflow property specifies what happens if the content is too large to fit into an element box. Overflow can be set to: Scroll: Overflow is clipped, but a scroll bar is added for viewing the extra content. Visible: Overflow is not clipped; it renders outside the element’s box. Hidden: Overflow is clipped and the rest of the content is not visible.

DEMONSTRATION Lesson 3.1 Basic CSS Styling In this demonstration, you will see how to: Setup HTML code to add “hooks” for styles. Create an external CSS file. Attach that file to the page and preview it in a browser.

DISCUSSION Lesson 3.1 What Is Meant by the CSS Box Model? 1.How is the box model used to style HTML elements? 2.What properties are included in the box model? 3.What part of the model is set to a specific height and width?

IN-CLASS ACTIVITY Lesson 3.1 Directions: Read the scenario. Answers to the questions. Review your answers with a partner.

REVIEW Lesson 3.1 Can you answer these? Why is it important to separate style from content? How does CSS manage positioning elements on a page? How does CSS apply presentation to content?

ADDITIONAL RESOURCES Lesson 3.1 MSDN Resources Internet Explorer ® Learning – CSS3 us/ie/gg Cascading Style Sheetshttp://msdn.microsoft.com/en- us/library/ms531205(v=vs.85).aspx Other Resources W3 Schools CSS Tutorialhttp:// About: What is CSS? mlcssxml.htm#s5