WRA 210 10.28.13 HTML & CSS – BUILDING WEBPAGES. TODAY’S AGENDA Review: external stylesheets Review: transforming a list Intro: the object Intro: the.

Slides:



Advertisements
Similar presentations
Web Pages Week 10 This week: CSS Next week: CSS – Part 2.
Advertisements

CSS Styling CSS Box Model & CS110: Computer Science and the Internet.
Cascading Style Sheets
Cascading Style Sheets
Today CSS HTML A project.
Very quick intro HTML and CSS. Sample html A Web Title.
Session 4: CSS Positioning Fall 2006 LIS Web Team.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
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:
Unit 20 - Client Side Customisation of Web Pages
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
Art 128 Interface Programming 1 In-class Presentation Week 11B.
4.01 Cascading Style Sheets
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.
CSS Box Model. What is the CSS Box Model? The “Box Model” is a tool we use to lay out our web pages in a number of individual "boxes" or "containers".
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
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.
ITP 104.  While you can do things like this:  Better to use styles instead:
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
CSS Netcentric. What is CSS O CSS stands for Cascading Style Sheets O Styles define how to display HTML elements O Styles were added to HTML 4.0 to solve.
 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.
Today’s objectives  Assignment 1  Padding, Margins, Borders  Fluid Layout page  Building accessible Table  Element size with padding and border 
WRT235: Writing in Electronic Environments Basic CSS.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
WRA 210: 10/30/2013 WIREFRAMES TO HTML/CSS. TODAY’S AGENDA Review: the object Review: the CSS Box Model Review: box model, and layout Intro: HTML5 structural.
IT Introduction to Website Development Welcome!
Web Design I Spring 2009 Kevin Cole Gallaudet University
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
CONTROLLING Page layout
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations SlideSet #5: Advanced CSS.
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
Nesting and Floating. Nesting and Floating Elements To make our page content appear the way we want, and to make the best use of screen space, we can.
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
CSS.
Cascading Style Sheets (CSS) Internal Style Sheets Classes
CSS Box Model.
CSS Box Model.
CSS Box Model.
4.01 Cascading Style Sheets
CSS Layouts: Positioning and Navbars
CSS Layouts: Grouping Elements
>> The “Box” Model
Cascading Style Sheets (Layout)
CSS Applications to XML 19-Sep-18.
Styles and the Box Model
Laying out a website using CSS and HTML
Second CSS Lecture Applications to XML
CSS Box Model.
More CSS Page layout Boriana Koleva Room: C54
More CSS 22-Feb-19.
Floating and Positioning
CSS Box Model.
4.01 Cascading Style Sheets
CSS Box Model.
CSS Box Model.
CSS Applications to XML 20-May-19.
Web Client Side Technologies Raneem Qaddoura
Web Programming and Design
CSS Applications to XML 3-Jul-19.
Presentation transcript:

WRA HTML & CSS – BUILDING WEBPAGES

TODAY’S AGENDA Review: external stylesheets Review: transforming a list Intro: the object Intro: the CSS Box Model Activity: build a layout with CSS

REVIEW [YET AGAIN]: THE DOM What is it? What does it do? What does it make possible? Who/what uses it?

REVIEW: EXTERNAL STYLE SHEETS Describe each: o Inline o Embedded o External Describe how inheritance works Link to your stylesheet from the o

REVIEW: TRANSFORMING A LIST How did we make a list into a nav menu? Discuss the manipulation of the list object

NEW OBJECT TYPE: Short for division Used to contain other objects o can contain any object type o can even contain other objects Purpose is to group similar/related content o example: header objects o example: footer objects Can have id and style attributes

EXAMPLE OBJECT This is My Cool Website Home About Me Resume

ACTIVITY Download markup test filemarkup test file Examine content Discuss: how can we use objects to organize the content into sections? Create the objects and contain objects o be sure to open and close both tags corrects o be sure to give objects id attributes

DISCUSS What do the objects accomplish?

THE CSS BOX MODEL Every object has 5 properties that control size and positioning o margin o padding o border o height o width Everything (everything!) is a box

MARGIN :: THE CSS BOX MODEL the space outside the border of an object creates physical distance between objects control value of all sides or for individual sides value managed in pixels examples: o margin:20px; o margin-bottom:10px

BORDER :: THE CSS BOX MODEL the solid edge around objects between margin and padding can control values for every edge or individual edges examples: o border:thick dashed blue; o border-top: thin solid red;

PADDING :: THE CSS BOX MODEL the space inside the border of an object and the contents of that object can control values for every edge or individual edges examples: o padding:20px; o padding-top: 5px;

WIDTH :: THE CSS BOX MODEL The width of an object from padding left to padding right Does not include values from padding, border, or margin One value: o width:900px;

HEIGHT :: THE CSS BOX MODEL The height of an object from padding top to padding bottom Does not include values from padding, border, or margin One value: o height:100px;

THE CSS BOX MODEL The properties of objects that control positioning and size Allows us to create layouts, move objects around to match our designs

BOX MODEL EXPERIMENTATION Add embedded style tags Add more spacing between list items Experiment: box model properties on paragraph and header objects? Experiment: box model properties on the object? Task: turn list into a navigation menu, consider from box model perspective

ACTIVITY: USE BOX MODEL FOR LAYOUT Task: create a basic "inverted L" layout Step-by-step, building it together Build from scratch Right now, create an HTML file

THE "INVERTED L" Header, left navigation, content right, footer Built semantically, in pure CSS Compare against old-school table methodold-school table method

STEPS TO BUILDING A LAYOUT 1.Wireframe 2.Build structure with objects 3.Populate structures with conent 4.Use CSS to position objects 5.Profit

STEP 1: WIREFRAME

STEP 2: BUILD STRUCTURE WITH Notice: all objects have id Notice: use of nested objects Notice: indenting to read of structure easier Notice: using a comment when closing objects go here

STEP 3: POPULATE STRUCTURE WITH STUFF Add the following to your structure o In header, a header and a subheader o In navigation, a list with at least four list items (links) o In content, a subheader and at least three paragraphs o In footer, a paragraph with footer info

STEP 4: POSITION WITH CSS Plan of attack: o assign width value to container, center it o assign width to navigation, float it (wut) o position content object to sit next to navigation o make sure margins work WTF is float??? (store this one away for next week)

SAVE EVERYTHING You will probably want this for reference. You can always reuse code.

FOR NEXT TIME Research the box model, if you need to Sketch out div structure for your landing pages (paper is fine) HTML5 structural objects