Exploring Office 2003 – Grauer and Barber Enhancing the Web Page Chapter 3 BCIS 1405 Session 15.

Slides:



Advertisements
Similar presentations
Tables Feb. 14, Tables Great way to organize and display information Laid out in columns and rows Think of an excel spreadsheet Defined with tag.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Internet Basics & Way Beyond!
HTML popo.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
HTML and Web Page Design Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
4.01 Cascading Style Sheets
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
XP 1 Tutorial 4 Designing a Web Page with Tables.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Creating Tables in a Web Site Using an External Style Sheet
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Cascading style sheets (CSS)
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
1 Basic HTML. 2 Part 1: Basic Web Page Production.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
1 Committed to Shaping the Next Generation of IT Experts. 02: Enhancing the Web Page HTML.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
C1999 Kathleen Schrock 1 Basic HTML By Kathy Schrock.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
1.NET Web Forms HTML Introduction © 2002 by Jerry Post.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
HTML, Part Showing Pictures: The Image Tags Image Tag Format –src short for source –alt for text –Can use absolute or relative pathname.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
HTML Lesson 3 Hyper Text Markup Language. Assignment Part 2  Set the file name as “FirstName2.htm”  Set the title as “FirstName LastName First Web Site”
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
Introduction to Web Authoring Bill Hart-Davidson AIM: billhd30 Session 2
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 02: Enhancing the Web Page.
4.01 Cascading Style Sheets
Madam Hazwani binti Rahmat
Computers and Scientific Thinking David Reed, Creighton University
Cascading Style Sheets™ (CSS)
Tutorial 3 Working with Cascading Style Sheets
Basic HTML.
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
4.01 Cascading Style Sheets
Presentation transcript:

Exploring Office 2003 – Grauer and Barber Enhancing the Web Page Chapter 3 BCIS 1405 Session 15

Formatting with Cascading Style Sheets Styles pre-define formats Allows changes to be made quickly All styles are defined in one place Makes for Global Formatting  Changes made in one place affects all Best to put Style tag in HEAD section

Cascading Styles Example:  All Body text to be centered Body {text-align: center} etc …

Defining a CLASS for Style Class used in two places  In HEAD Style definition  In Body text HEAD EXAMPLE: P {font-style: normal} P.it {font-style: italics} P.color {color: red}

Defining a CLASS for Style (Continued) Class used in two places  In HEAD Style definition  In Body text BODY Text EXAMPLE: This text will be in italics This text is not affected This text is red This text is not affected

HTML to Show Use of Classes

RESULTING WEB PAGE

Mixing Classes with Other Tags Adding a Bold Tag

BOLD HAS BEEN ADDED

Adding a Horizontal Line Placing a line or ruler across the page Use the tag  No closing tag  Can change width and length of the line  Used to divide a page

Example: HR {height:10; color: blue}

Result of Adding a Horizontal Line 10 Point Blue Line inserted

Inserting Pictures / Graphics Can include universal formats .JPG(best for photographs) .GIF(most browsers accept this format) Use  Must use SRC=“filename” attribute for source  EXAMPLE:  No closing tag

Inserting Pictures / Graphics Can use ALT= alternate attribute to display EXAMPLE: This will display “Company CEO” rather than the file name (“A:\picturename.jpg”) Other attributes available are HEIGHT, WIDTH, FLOAT (causes browser to load quicker)  Height & Width are measured in pixels  Float defines position (Left, Right, Center)

Inserting Pictures / Graphics EXAMPLE using Height, Width, Float <IMG SRC=“A:\picturename.jpg” ALT=“Company CEO” HEIGHT= “200” Width = “40”> Better to use Classes for each image size IMG.ceoPic1 {width: 40; height: 200; float: center} … body text … <IMG SRC=“A:\picturename.jpg” class=“ceoPic1” ALT=“Company CEO”>

Adding Background Color Add a STYLE that applies to the BODY tag EXAMPLE: BODY {background-color: #0000FF} This will create a blue background

Common Colors COLORHEX EQUIVALENT Red #FF0000 Green#00FF00 Blue#0000FF Black# White#FFFFFF Tan#DEB887 Turquoise#19CCDF Magenta#FF00FF Yellow#FFFF00

Using a Graphic as Background Use image as background (instead of color) EXAMPLE for BODY background BODY {background-image: url (A:\classroom2.jpg)} Image should be light in color for better reading of page

RESULT of Classroom as background

Result of using a small picture as a background (Browser tiles the image and repeats it to cover background)

Changing Text Color Can change color of different text types  ,, etc. Can change color of hypertext links Can change color of visited links Can change color of active links

Changing Text Color BODY Colors EXAMPLE of White Text with Blue Background <STYLE type=“text/css” BODY {color: #FFFFFF; background-color: #0000FF}

Applied to previous Web Page

To Insert Special Characters You can use Name or Code CHARACTERNAMECODE ©©© ®®® ÈÈÈ ¥&yen¥ £££ >>> <&LT;< &&& Must use Name or Code for “<“ because HTML uses that for start of a tag IF A < B would be coded: IF A &LT; B or IF A < B

Inline Styles Used rarely – Single style definition is preferable Used when a style is to be used only once How it works: L ove Would produce: L ove

Using Tables To better organize data for user Columns and rows (intersection is a cell) Data placed in cells Table contents are between: and tags

Table Syntax Start each row with: tag End each row with: tag Everything between these tags will appear in one row

Table Syntax … text in First row … text in Second row

Table Syntax Use the and tags for column head  Will make contents BOLD for Col. Headings  EXAMPLE: Qty Price Cost Will create:Qty Price Cost

Table Syntax Use the and tags for column data Qty Price Cost 2 $10.00 $40.00

Table Syntax Adding a Border Use the and tags for column data Qty Price Cost 2 $10.00 $40.00

Result of Adding a Table to our Example Web Page

Table Syntax Wider Border & More Spacing Use the and tags for column data Qty Price Cost 2 $10.00 $40.00 Wider Border More space between cells

ASSIGNMENT See online assignment for Session 15 Due at beginning of next class