XHTML/CSS Module in 2 parts

Similar documents
CST 150 Web Design I CSS Review - In-Class Lab

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Web layout guidelines for daughter sites of Scotland s Environment

JJY s Joomla 1.5 Template Design Tutorial:

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

HTML Fails: What No One Tells You About HTML

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28

Further web design: Cascading Style Sheets Practical workbook

CSS for Page Layout. Key Concepts

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

Level 1 - Clients and Markup

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

Web Authoring CSS. Module Descriptor

Links Getting Started with Widgets, Gadgets and Mobile Apps

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

Web Design and Development ACS Chapter 9. Page Structure

Outline of CSS: Cascading Style Sheets

CS134 Web Site Design & Development. Quiz1

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Web Design and Databases WD: Class 7: HTML and CSS Part 3

{color:blue; font-size: 12px;}

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

ICE: HTML, CSS, and Validation

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

MCH Strategic Data Best Practices Review

HTML and CSS. Elliot Davies. April 10th,

Microsoft Expression Web Quickstart Guide

Advanced Web Design. Zac Van Note.

8 STEPS TO CODE KILLER RESPONSIVE S

Slicing and Coding the Navigation Background in CSS

Agenda. 1. ZAPms Konzept. 2. Benutzer-Kontroller. 3. Laout-Aufbau. 4. Template-Aufbau. 6. Konfiguration. 7. Module.

Create Webpages using HTML and CSS

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 2

Creating the Surf Shop website Part3 REVISED

Contents. Downloading the Data Files Centering Page Elements... 6

Create Your own Company s Design Theme

Table of Contents. CSS Instant Results byrichard York Wrox Press 2006 (408 pages)

Introduction to Web Development

Using Style Sheets for Consistency

Introduction to Adobe Dreamweaver CC

ITNP43: HTML Lecture 4

How to Properly Compose HTML Code : 1

Introduction to web development and JavaScript

Klik op deze albums als u de foto s van onze evenementen wil ontdekken.

Chapter 1 Introduction to web development and PHP

Make a Joomla Template in 5 Easy Steps A Beginners Guide

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define:

CHAPTER 10. When you complete this chapter, you will be able to:

Web Design Course. Home Page. Join in. Home. Objectives. Course Content. Assignments & Discussion. Grades. Help. Contact Me aab43@uakron.

Coding Standards for Web Development

Web publishing: An introduction to CSS

CIS 467/602-01: Data Visualization

Advanced Editor User s Guide

Chapter 1. Introduction to web development

How to craft a modern, mobile-optimized HTML template. Jason Samuels, NCFR IT Manager DrupalCamp Twin Cities May 2012

GUIDE TO CODE KILLER RESPONSIVE S

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

CSS - Cascading Style Sheets

Simply download Beepip from and run the file when it arrives at your computer.

Flare Tips and Tricks. Tips and tricks. Importing content Lists. Variables and snippets Condition tags Printed documentation WebHelp.

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

Appendix H: Cascading Style Sheets (CSS)

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

Eloqua What is this and why should I read it?

01/42. Lecture notes. html and css

Wykład 2_2 TINT. Kaskadowe arkusze stylu Tabele, zastosowanie znaczników div. Zofia Kruczkiewicz

HAML und SASS. (und COMPASS) markup haiku vs. syntactically awesome stylesheets. Tobias Adam, Jan Krutisch mindmatters GmbH & Co.

Cascading Style Sheet (CSS) Tutorial Using Notepad. Step by step instructions with full color screen shots

Making Responsive s

Responsive HTML and Drupal

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

.NET Best Practices Part 1 Master Pages Setup. Version 2.0

Google Web Toolkit. Progetto di Applicazioni Software a.a. 2011/12. Massimo Mecella

Quick Start Guide. This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:

Cascading Style Sheets (CSS)

ITP 101 Project 3 - Dreamweaver

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

Web Publishers Group. Tuesday 13 March 2012

With mobile devices and tablets becoming popular for browsing the web, an increasing number of websites are turning to responsive designs to

Web Design for Programmers. Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission

WRITE BETTER HTML BY WRITING BETTER CSS

Creating a Resume Webpage with

WordPress and HTML Basics

Responsive Design

Responsive Web Design for Teachers. Exercise: Building a Responsive Page with the Fluid Grid Layout Feature

The Training Floor s. Webmaster s. Bible

<?xml version= 1.0?> <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

Learning Web Design. Third Edition. A Beginner's Guide to (X)HTML, Style Sheets, and Web Graphics. Jennifer Niederst Robbins

Joomla! template JSN Mico Customization Manual

Can I use a Windows Command Prompt to send FTP Commands to a server?

Introduction to Web Technologies

HTML5 and CSS3 Design with CSS Page 1

HTML5 & CSS3. ( What about SharePoint? ) presented

Web Development I & II*

A send-a-friend application with ASP Smart Mailer

Transcription:

XHTML/CSS Module in 2 parts So as to familiarize yourself with the basics of XHTML and CSS, I want you to walk through the following module. This will be due at the end of class today. Please save the files on a web server and email me the addresses of your final products. Part 1: Playing with Text and Understanding Elements Open a texteditor and create two new documents. In one document type the following (use any text you want, must make sure to have the headers and paragraphs). DO NOT CUT AND PASTE as it will screw up the character set. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>your Name s Module</title> <link rel= stylesheet type= text/css href= module.css /> <h1> Heikki Lunta: The Snow God! </h1> <p class= first > In 1970, during the early days of the reawakening of Finnish ethnic consciousness in North America, a chance radio advertisement created a now-popular folk character in the Finnish ethnic community on the Keweenaw Peninsula of Upper Michigan This character, Heikki Lunta [hay -key loon -ta], was originally presented in a song, and immediately became a parcel of the local cultural life. <p class= second > Heikki Lunta stands as a metaphor for many things, and as his uses continue to grow, so do his meanings from person 1

</body> </html> to person He can cross ethnic, economic, and geographic lines, but his survival in folklore depends on those who first imagined him, the residents of the Upper Peninsula. Save this document as module.html (in your studentwebsites folder or other public space). Now in your other document, type the following: body {background-color: #CCCC99;} h1 {font-size: 24px; color: #FFCCFF; }.first {font-size: 18px; line-height: 24px; color: #FFFFFF; background-color: #666666; }.second {font-size: 10px; font-family: times, serif; color: #000000; border: 2px solid; } Save this document in the same place as the HTML document but call it: module.css Preview the HTML document in a browser to see how it looks. It should look like this: http://www.wsu.edu/~arola/477/spring08/module.html. If it doesn t, problem solve! Now, try to do the following: Visit: the book or http://www.w3schools.com/css/css_examples.asp or a page from our resources for help. 1) change the font color of the header 2) put a border around the header 3) put a background color behind the header 4) make the first and second paragraph the same font size and color 5) get rid of the border in the second paragraph and put a background color instead 6) add a new paragraph. Create a new style for it. 7) save and text for validation at http://validator.w3.org/. If it s not valid, problem solve. 8) Send me the address to your final version. 2

Part 2: Positioning There is a lot going on in the following code, but it will give you a model to work off of when you re thinking about positioning and making links. In your text editor open two documents. In one document, type the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>your Name s Module Part 2</title> <link rel="stylesheet" type="text/css" href="module2.css" /> <div id="container"> <div id="header"> <h1>go Cougs!</h1> <div id="floater"> <p class="snow"> Change the broswer size and notice where I stay. Am I positioned absolutely, relative, or fixed? (pg 178-180 of our text) <div id="words"> <p> Do you really think the cougars are as good as their record? I'm wondering. I mean, they almost lost to Oregon, they lost to Arizona, and barely beat ASU. something something Do you really think the cougars are as good as their record? I'm wondering. I mean, they almost lost to Oregon, they lost to Arizona, and barely beat ASU. something something 3

<div id="navbar"> <ul> </ul> </body> </html> Save this document as module2.html. Now in the other document, create a css file by typing the following: body #container #header h1 #words #floater {background-color: #CCCC99} {width: 750px; height: 400px; background-color: #FFFFFF; margin-left: auto; margin-right: auto;} {position: relative; top: 20px; left: 15px;} {font-size: 50px; color: #FFCCFF;} {font-size: 18px; line-height: 24px; color: #FFFFFF; background-color: #666666; width: 300px; position: relative; top: 50px; left: 400px;} {position: absolute; top: 15px; left: 50px; background-color: #FFCCFF; border: 5px #000000;} 4

.snow #navbar {font-size: 12px; color: #FFFFFF;} {position: absolute; width: 120px; top: 150px; left: 120px; padding-left: 0; margin-left: 0; border-bottom: 1px solid gray;} #navbar ul {margin: 0; padding: 5px; font-size: 18px; font-family: sans-serif; text-align: right;} #navbar li {list-style: none; margin: 0; padding: 5px; border-top: 1px solid gray;} #navbar a {color: #999999; text-decoration: none;} #navbar a:hover {color: #666666;} Save this document in the same place as the HTML document, but call it module2.css. Preview the page and see how it looks. It SHOULD look like this: http://www.wsu.edu/~arola/477/spring08/module2.html Now, try to do the following: Visit: the book or http://www.w3schools.com/css/css_examples.asp or a page from our resources for help. Visit: http://css.maxdesign.com.au/index.htm for info on making different nav bars 1) play with the top and left tags in the different divs (in the css) and see where it moves the section in the browser. For eg, go into the CSS and in the #header change the top to 100px and the left to 50px) 2) get rid of the pink floater (the how am I positioned div) in the HTML and CSS 3) change the background color of the #words div, also change the font color within this div 4) make the first and second paragraph the same font size and color 5) try to make the nav bar look different (try the above link for some ideas) 6) save and test for validation at http://validator.w3.org/. If it s not valid, problem solve. 7) Send me the final address 5