class: xhtml & css, for beginners

25
Building PHP Web Sites Class: “XHTML & CSS” Level 1: Beginners

Upload: school-of-applied-web-technology-and-magic

Post on 17-May-2015

148 views

Category:

Education


2 download

DESCRIPTION

XHTML and CSS2 are the technologies used for describing how your website looks like. This class will give you perspective on how to create valid HTML documents, optimized for search engines. So why do we bother with XHTML and CSS2 if responsive themes, HTML5 and CSS3 is already the top of the top? Because you need to first get the base technologies and then we will go exploring what's fashion and what gets you paid good bucks. We are going to pay attention to the semantic rules of the web and why it is important to have good XHTML structure of your website. End Goals: - Understanding XHTML, CSS and their exact purpose in website’s frontend creation. - Converting Adobe Photoshop designs into valid, well-structured HTML documents. - Solving CSS cross-browser inconsistencies.

TRANSCRIPT

Page 1: Class: XHTML & CSS, for Beginners

Building PHP Web Sites

Class: “XHTML & CSS”Level 1: Beginners

Page 2: Class: XHTML & CSS, for Beginners

Who am I?

My name is Ivan.

I have 5 years of experience in Web development.

I have had the luck to start my career being mentored by great developers with lots of experience.

I have been involved in websites of various complexity, and sometimes I have taught people and consulted developers.

I found that I LOVE to share knowledge and help.

…and here I am. This is my mission.

Page 3: Class: XHTML & CSS, for Beginners

How is the class structured?

A class is organized into lessons.

Each lesson costs 12$ and takes hour and a half at most to be completed.

There are numerous exercises at the end of each lesson and a big boss ( practical ) exercise at the end.

Page 4: Class: XHTML & CSS, for Beginners

What is expected from you?

When you purchase a class, we are going to work with a Skype audio-video chat.

Before purchasing the class, please buy a headset if you lack one. ( note: you don’t need a camera ).

Also, make sure you can dedicate 1 hour and a half ( at most ) for a lesson.

At the end of each lesson, I give out assignments ( home works ) – be ready to do your home works.

Page 5: Class: XHTML & CSS, for Beginners

General Information

Page 6: Class: XHTML & CSS, for Beginners

Definitions

XHTML and CSS are the technologies used for describing how your website looks like.

This class will give you perspective on how to create valid HTML documents, optimized for search engines.

We are going to pay attention to the semantic rules of the web and why it is important to have good XHTML structure of your website.

Page 7: Class: XHTML & CSS, for Beginners

End Goals

Understanding XHTML, CSS and their exact purpose in website’s frontend creation.

Converting Adobe Photoshop designs into valid, well-structured HTML documents.

Solving CSS cross-browser inconsistencies.

Page 8: Class: XHTML & CSS, for Beginners

Timeframe

8 lessons 4-part “boss” exercise

Page 9: Class: XHTML & CSS, for Beginners

Interested? We can start right away!

Contact Details: Skype: ivan.zanev2 Email: [email protected]

Next part of the presentation provides overview of the class structure…

Page 10: Class: XHTML & CSS, for Beginners

Lesson Structure

Page 11: Class: XHTML & CSS, for Beginners

Lesson #1: XHTML Basics

Preparations Installing Web Developer Add-on Applications ( Firefox )

▪ Firebug▪ Web Developer Toolbar▪ HTML Validation

Overview History and purpose of HTML Elements of the XHTML

▪ Tags▪ Attributes▪ Entities ( for reserved characters )

DOCTYPE Basic Elements of the HTML document.

Text Styles▪ Headings▪ Paragraphs▪ Block Write ( new line )▪ Emphasizing Text▪ Quotations / Citations▪ Subscription / Superscription▪ Abbreviation▪ Code and Program Output▪ Escaping Special Characters ( HTML Entities )

Images Links Lists

▪ Ordered / Unordered Lists▪ Definition Lists

Exercises Examine Websites for their layout structure Convert Microsoft Word® Document to an HTML document

Page 12: Class: XHTML & CSS, for Beginners

Lesson #2: XHTML Forms

Introduction to XHTML Forms Form Controls

Buttons▪ Submit▪ Reset▪ Push

Checkboxes Radio Buttons Menus

▪ Select▪ Multiple-Select

Text input Controls▪ Textbox▪ Text Area

File Selectors Hidden Controls

Enrich Controls Behavior Labels Tab Index Access Keys

Exercises Create a Form

Page 13: Class: XHTML & CSS, for Beginners

Lesson #3: XHTML Tables

Introduction to XHTML Tables When to use tables, when not to use tables ( table layouts

vs. real tabular data ) Table Elements▪ Rows▪ Cells

Spanning Spanning Columns Spanning Rows

Grouping Grouping Rows ( head, body, foot ) Grouping Columns ( colgroup, col )

Exercises Create a Table

Page 14: Class: XHTML & CSS, for Beginners

Lesson #4: XHTML Meta-Information and SEO

Introduction What have we learned so far, what is

XHTML used for? Meta Tags

Are they used in Search Engine Optimization?

Page Keywords Document Description Page Author Meta Refresh

Page 15: Class: XHTML & CSS, for Beginners

Lesson #5: Introduction to CSS

What is CSS? What is it used for? Loading and Applying CSS Rules to an XHTML document

Inline vs. Block Elements▪ The <div>▪ The <span>

Loading CSS Rules▪ The <link> tag▪ The <style> tag

Applying CSS Rules▪ The “id” attribute – “#” selector▪ The “class” attribute” – “.” selector▪ The “style” attribute”▪ Pseudo-Classes

Grouping CSS Rules Exercises

Page 16: Class: XHTML & CSS, for Beginners

Lesson #6: Inline-Block Formatting Inline-level Formatting

Font ▪ Family▪ Size▪ Color▪ Style and Decoration

Letter / Word Spacing Case Transformation

Block-level Formatting Elements of the Box Model

▪ Content Box▪ Width

HeightMinimum / Maximum Width / Height

▪ Padding▪ Border▪ Margin▪ Outline

Line Spacing Line Height Text Indentation

Exercises Styling Links Styling Lists Styling Paragraphs

Page 17: Class: XHTML & CSS, for Beginners

Lesson #7: Working with the Background

Working with the Background Background Color Background Image▪ URL▪ Position▪ Repeat

Using Sprites When to use Sprites

Dealing with PNG Images Solving IE6-related problems

Exercises

Page 18: Class: XHTML & CSS, for Beginners

Lesson #8: Rendering

Display Change the way an element is displayed ( block / inline ). Change element’s visibility.

Floating Block Elements Examples of float with block / inline elements. Clearing the float.

Positioning Elements Static Fixed Relative Absolute z-Index

Aligning Elements Vertical

▪ Using the line height.▪ Using vertical align

Horizontal▪ Using automatic margins.▪ Using relative positioning.

Controlling content’s overflow Exercises

Page 19: Class: XHTML & CSS, for Beginners

Boss Exercise

Page 20: Class: XHTML & CSS, for Beginners

Convert PSD to valid XHTML & CSS ( part 1 )

Planning and Preparations Overview of the website and planning

ahead. Cutting the parts in Photoshop.▪ Saving Images for Web Devices▪ Formats

Page 21: Class: XHTML & CSS, for Beginners

Convert PSD to valid XHTML & CSS ( part 2 )

Creating the Main Page Layout. Creating the Header Tree Menu

Page 22: Class: XHTML & CSS, for Beginners

Convert PSD to valid XHTML & CSS ( part 3 )

Styling the About Us Page ( Paragraphs, Images, Aligning ).

Styling the Catalog Page Styling the Product Page Styling the Contact Us Page

( Contact Form ). Styling the Home Page.

Page 23: Class: XHTML & CSS, for Beginners

Convert PSD to valid XHTML & CSS ( part 4 )

Checking for cross-browser inconsistencies and solving IE-related problems.

Page 24: Class: XHTML & CSS, for Beginners

What now?

Page 25: Class: XHTML & CSS, for Beginners

Interested? We can start right away!

Contact Details: Skype: ivan.zanev2 Email: [email protected]