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



Similar documents
ITNP43: HTML Lecture 4

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

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

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

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

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Creating a Resume Webpage with

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

HTML, CSS, XML, and XSL

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

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Cascading Style Sheets (CSS)

Using Style Sheets for Consistency

ICE: HTML, CSS, and Validation

Web Design and Development ACS Chapter 9. Page Structure

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

Outline of CSS: Cascading Style Sheets

CSS for Page Layout. Key Concepts

Designing HTML s for Use in the Advanced Editor

CIS 467/602-01: Data Visualization

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

JJY s Joomla 1.5 Template Design Tutorial:

Create Webpages using HTML and CSS

Interactive Data Visualization for the Web Scott Murray

Selectors in Action LESSON 3

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

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

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

Fast track to HTML & CSS 101 (Web Design)

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

How to Properly Compose HTML Code : 1

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 (

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

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Website Planning Checklist

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

HTML TIPS FOR DESIGNING

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

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

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

HTML and CSS. Elliot Davies. April 10th,

Microsoft Expression Web Quickstart Guide

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

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

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

Responsive Web Design: Media Types/Media Queries/Fluid Images

Web Authoring CSS. Module Descriptor

Creating Web Pages with Dreamweaver CS 6 and CSS

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

Chapter 8 More on Links, Layout, and Mobile Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

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

Create Your own Company s Design Theme

Web Design I. Spring 2009 Kevin Cole Gallaudet University

MCH Strategic Data Best Practices Review

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Advanced Web Design. Zac Van Note.

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Web Development I & II*

Web Development 1 A4 Project Description Web Architecture

Introduction to Web Design Curriculum Sample

Introduction to Adobe Dreamweaver CC

Using an external style sheet with Dreamweaver (CS6)

CSS - Cascading Style Sheets

GUIDE TO CODE KILLER RESPONSIVE S

Campaign Guidelines and Best Practices

COMMON CUSTOMIZATIONS

How To Design A Website For The Decs

SellerDeck 2014 Responsive Design Guide

HTML5 and CSS3 Design with CSS Page 1

Lesson Review Answers

Advanced Editor User s Guide

Colgate University Website Content Style Guide

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

Style & Layout in the web: CSS and Bootstrap

WEB DEVELOPMENT IA & IB (893 & 894)

Virtual Exhibit 5.0 requires that you have PastPerfect version 5.0 or higher with the MultiMedia and Virtual Exhibit Upgrades.

Introduction to XHTML. 2010, Robert K. Moniot 1

How to code, test, and validate a web page

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

The Essential Guide to HTML Design

Appendix H: Cascading Style Sheets (CSS)

Citrix StoreFront. Customizing the Receiver for Web User Interface Citrix. All rights reserved.

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

Basic tutorial for Dreamweaver CS5

Basic Website Maintenance Tutorial*

Website Development. 2 Text. 2.1 Fonts. Terry Marris September We see how to format text and separate structure from content.

Web Design.

Short notes on webpage programming languages

Base template development guide

Interspire Website Publisher Developer Documentation. Template Customization Guide

Madison Area Technical College. MATC Web Style Guide

Transcription:

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

Contents HTML Quiz Design CSS basics CSS examples CV update

What, why, who? Before you start to create a site, it s vital that you have clear in your mind What type of site you are creating? Why you are creating the site? Who the site is for? Plan your layout and menus (navigation) Pen and paper Whiteboard Mockups (closer to final) Use special mockup programs Graphic editor as Paint.NET Powerpoint or whatever you got Design rules Menu to the left and content to the right Try to follow standars and content visible

Balsamiq Mockups http://balsamiq.com/products/mockups

Writing For The Web 1 Think about who you re writing for? Don t start with a long "welcome" intro... Don t assume that everyone reading your Web site will have an enormous screen or a fast internet connection Keep paragraphs short and columns narrow Line spacing of 1.5 or 2 is good Never use blue or underlined text Stick to the various conventions Don t arrange text in columns such that the reader has to scroll the screen up and down Don t waste too much above-the-fold Check the spelling of your pages Swedish characters problem å, ä, ö <meta charset="utf-8"> or set charset=iso-8859-1

Writing For The Web 2 Fonts Fonts are important. Some are more readable on screens, don t use non-standard fonts that your readers are unlikely to have installed on their computer Colors Readers will use your site s color scheme to form a subconscious opinion about you :-) Hyperlinks Those 1 or 2 words, normally in blue and underlined, which your visitor can click on to move to another local page or another site on internet. <a href="more.html">more local stuff</a> <a href="http://www.google.com">google</a> Mailto links <a href="mailto:someone@example.com?subject=hello!">send Mail</a>

Repetition basics of HTML 1 An HTML file contains a mixture of page content and formatting commands HTML tags generally occur in pairs

Repetition basics of HTML 2 Tags: <tag> your content </tag> The <head> tag contains information about the page as a whole The <title> tag which is where your page s title gets put The </ > tag means "close the previous tag" The paragraph <p> tag starts each new block of text The <b> tag makes text bold and <i> makes it italic 6 heading levels, the main heading on your page may be <h1> or <h2> Meta tags Meta-tags are a way for a web page to supply information about itself to the web browser that is displaying the page <meta name="description" content="latest availability for the Grand Hotel"> <meta name="keywords" content="availability, late bookings, vacant rooms"> HTML visibility Everyone that can view your page can read and copy your code HTML validation ensure that your code is correct Built-in in some tools or use http://validator.w3.org

Accessibility design Build accessibility (people with sight and mobility problems) in as early as possible in the overall design process since it can be very very time-consuming to retrofit as an afterthought Provide alternative ALT text for every picture or image that you use Don t create information which can t be understood by those who can t see colours properly Ensure that there is sufficient contrast between text and background colours Avoid scrolling text and other dynamic effects Avoid any technique which may produce flickering effects on-screen Use the clearest and simplest language for site content Keep paragraphs short, and include some white space between them Do not use frames, screen readers don t like them. Dark text on a light background works better that light text on a dark background Use a line spacing of around 1.5 to ensure that the text on a page doesn t look too "heavy"

Cascading Style Sheets CSS enable separation of apperance and content Old way to do styles <p><font face=verdana size=12pt> Your content </font><p> Tag style p { font-family: Verdana; size: 12; } All your pages which are linked to the specific CSS file will be changed according to the configuration Pre HTML5 DOCTYPEs and DTD (Document Type Definition) The two main document types are XHTML 1.0 Strict and XHTML 1.0 Transitional Transitional is the version that allows both new-style CSS as well as old-fashioned <font> tags "Strict" mode doesn't allow <font> tags

The style element/attribute The style= attribute can be used on most tags but is not recommended to use Defines features for a single HTML element, e.g. <p style= text-align: center >Center me.</p> The <style> element: <style type= text/css >... </style> The <style> tag always goes in the <head> section Defines style information for the whole HTML page Requires the type= text/css attribute if using XHTML or HTML < HTML5 Example style for the selected element: body <style type="text/css"> body { background-image: url(image.jpg); font-family: Verdana,sans-serif; font-size: 20px; color: green; } </style>

The style element/attribute CSS Syntax A CSS rule has two main parts: a selector, and one or more declarations: CSS font properties: http://www.w3schools.com/css/css_font.asp h1 {font-size:2.5em;} /* 40px/16=2.5em */ h2 {font-size:1.875em;} /* 30px/16=1.875em */ p {font-size:0.875em;} /* 14px/16=0.875em */ Use a Combination of Percent and Em may work best!

CSS Reference http://www.w3schools.com/ Have many great resources!

CSS and the link tag To link to a external separate CSS style sheet, use the link tag instead <link rel= stylesheet type= text/css href= string > rel= relation between the page and the destination resource Requires the type= text/css attribute if using XHTML or HTML < HTML5 body { More about CSS later! font-family: verdana, sans-serif; } div { position: relative; left: 30px; } p,ul,li { font-size: 10pt; } <!-- class and id based CSS below, TBD later -->.boldtext{ font-weight: bold; } #content { margin-left: 140px; border-left: 1px solid gray; }

CSS cascading style sheets CSS is an extension to basic HTML that allows you to style your web pages apperance Style separates content from apperance of your page CSS can be used to specify fonts, colors, image background, the looks of your links and many other attributes CSS can be embedded into your webpage (head or inline) or stored in an external text file that you can then link to your web page Precedence

Class based styles A class is a style that you can use anywhere on a web page, rather than for a particular HTML tag You can customise and create styles to the way you want and reuse them anywhere <!-- or p.mystyle if you want to be more specific -->.mystyle { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 20px; color: red; } <body> <p class="mystyle">hello World </p> </body>

Basics of CSS Format > Style Sheets > Link option to enable CSS file in Amaya old doctype

Basics of CSS Fonts and CSS Sans-serif fonts are Arial, Verdana etc. Serifs fonts are Courier New, Times New Roman etc. with embellishments on the ends of the characters Serifs fonts works best for body text and sans-serif fonts for headlines and picture captions Fixed with fonts versus different width fonts Usually different width fonts looks best Making Styles work for you Keep the number of styles (tag and class) to a minimum Choose your class names with care. Pick names based on what the class is used for, not what it looks like Use a better CSS editor Topstyle Lite etc.

Fonts

HTML Markup Tags Names To make the most of HTML and CSS you need to know what tag names are available to you You can find a complete list on the internet, but here are a few to get you started

HTML markup cheat sheets

ID-based styles HTML allows you to assign a unique name, or id, to any tag on a page. The only stipulation is that a name must be unique on that page <h2>about Cheddar Cheese</h2> We can give this heading a unique id by changing the opening h2 tag thus <h2 id="about-cheese">about Cheddar Cheese</h2> Unless you say otherwise, this heading will appear as any h2 heading would, according to the h2 entry in your style sheet. But because this particular heading has its own id, we can do something rather clever in the css file, like this #about-cheese { color: navy; } Notice that ID have # and class have. as first character in the style name

TopStyle CSS editor CSS size %, px, em or xx-small - xx-large The unit em is relative to the users selected size for elements as font etc. If the users selected font size is 16px, 0.75em is equal to 12px. % works similar. In design with absolute layouts and many graphical effects pixels are simpler to work with. http://css-tricks.com/2580-css-font-size/

Extreme CSS

More about CSS CSS can be very complex to set up There are 600 pages+ books in the subject! It is advised to begin with a ready-made design from resources as: http://oswd.org or http://www.opendesigns.org/ One of the most important concept in css-based layout is the css box model It explains how padding, spacing, justification (left, right, centred, etc.) and margins interact to affect the final position of an item on a page From: http://www.w3.org/tr/css3-box/

Page layouts and div tags Many web sites typically use a top section that uses the whole width of the page and a 2 or 3 column layout below Having the the title, logo etc. at top, the menu in the left column, and the content in the other column and perhaps a footer CSS in combination with <div> tags can achive this layout Div stands for division or divider and is used to specify its position on the page, relative to the top left hand corner or to other divs

ID based CSS

Page layouts in HTML5 Doing the same layout in HTML5 works in a similar way Using the markup that is suited for layouts like below CSS is of course still needed http://www.dave-woods.co.uk/index.php/html5-tutorial-getting-started/

HTML5 page layout elements 1 The WHATWG spec. defines the elements as follows: The header element is a group of introductory or navigational aids. The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content, typically with a heading. The article element represents a self-contained composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication.

HTML5 page layout elements 2 The WHATWG spec. defines the elements as follows: The nav element should be reserved for navigation that is of primary importance. The aside element represents a part of the page that s tangentially related to the content around the aside element, and which could be considered separate from that content. A footer element, according to the spec, represents a footer for the section of content that is its nearest ancestor. The section of content could be the entire document, or it could be a section, article, or aside element.

Debug: Chrome Ctrl-shift-I

Debug: Internet Explorer - F12

Debug: Firefox Ctrl-shift-I

Firefox - Web developer toolbox and Firebug plugin