Starting BBEdit (Notepad) and Opening an HTML File Open the Public Folder Start Notepad or BBEdit Click File on the menu bar, and then click Open In the.

Slides:



Advertisements
Similar presentations
Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Advertisements

Project 8 Creating Style Sheets.
Creating and Editing a Web Page Using Inline Styles
Using Advanced Cascading Style Sheets
Chapter 8 Creating Style Sheets.
Chapter 5 Creating an Image Map
Creating a Form on a Web Page
Creating a Form with Selection Menus The SELECT control creates a selection menu This control only allows the visitor to choose pre-defined choices There.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Tutorial 3 Introducing Cascading Style Sheets. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Learn about Cascading Style Sheets Write.
INTRODUCTORY Tutorial 3 Using CSS to Format Multiple Pages.
Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.
Chapter 7 Using Advanced Cascading Style Sheets HTML5 & CSS 7 th Edition.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
Selectors thru Borders. CSS – Cascading Style Sheets – is a way to style HTML HTML is the content base of a web page CSS provides the presentation qualities.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize.
HTML Concepts and Techniques Fourth Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML Comprehensive Concepts and Techniques Third Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML Concepts and Techniques Fourth Edition Project 8 Creating Style Sheets.
Adding an Inline Style Sheet Page without Inline Style Sheet Page with Inline Style Sheet.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
HTML Concepts and Techniques Fourth Edition Project 8 Creating Style Sheets.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Creating Tables in a Web Site
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit E Formatting with Cascading Style Sheets.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
HTML Concepts and Techniques Fourth Edition Project 6 Using Frames in a Web Site.
HTML, XHTML, and CSS Chapter 8 Adding Multimedia Content to Web Pages.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Cascading Style Sheets Chapter Four. What are they? A set of style rules that tell the web browser how to present a web page or document. Cascading Style.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Writing a JavaScript User-Defined Function  A function is JavaScript code written to perform certain tasks repeatedly  Built-in functions.
HTML Concepts and Techniques Fourth Edition Project 7 Creating a Form on a Web Page.
Creating a Form on a Web Page
1 Creating the Header Page The header frame always displays on the AHS Web site The image (screagle.gif) that will go in the header is contained on the.
HTML Concepts and Techniques Fourth Edition Project 5 Creating an Image Map.
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
INTRODUCTORY Tutorial 3 Using CSS to Format Multiple Pages.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Cascading Style Sheets
Using Frames in a Web Site Project 6. Project Objectives Project 6: Using Frames in a Web Site 2 Define terms related to frames Describe the steps used.
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
Cascading Style Sheets Web Design Fairport High School.
Creating and Editing a Web Page Using Inline Styles
CSS Cascading Style Sheets *referenced from
1 Your Web Page title body of Web page main heading H2 heading bulleted list paragraph.
Creating Web Pages with Links, Images, and Embedded Style Sheets
Basic Webpage Design Cascading Style Sheet (CSS).
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
Chapter 7.  Change body and link styles  Create a drop-down menu  Change color and font styles in the menu  Create a pop-up effect using CSS  Utilize.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
Microsoft Expression Web-Illustrated Unit G: Designing Site Navigation.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Madam Hazwani binti Rahmat
Project 8 Creating Style Sheets.
Creating Tables in a Web Site Using an External Style Sheet
Using Frames in a Web Site
Presentation transcript:

Starting BBEdit (Notepad) and Opening an HTML File Open the Public Folder Start Notepad or BBEdit Click File on the menu bar, and then click Open In the Project 7 folder, open menu.htm

Adding an Embedded Style Sheet

Setting the Paragraph Style P {text-indent: 8pt}  Indents the first word of each paragraph 8 points from the left edge of the browser window You can specify a fixed value in inches, centimeters, or pixels You can specify a relative value for a text indent using a percentage

Setting a Style for All Links Text-decoration  Blink  Line-through  Overline  Underline You can apply multiple text-decorations: {text-decoration: underline overline}

Setting a Style for All Links Font-family property  Allows you to define a font for use in a Web page  Best to specify more than one font-family value {font-family: “Times New Roman”,Verdana} Font-size property Color property

Adding an Embedded Style Sheet Click line 4 and then press the ENTER key

Enter the CSS code on the following slide

Saving an HTML File Click “Save As” and save your changes to menu.htm Click the Save button in the Save As dialog box

Viewing an HTML File in the Browser Start your browser Open index.htm

Printing an HTML File Click the Notepad button on the taskbar or click on BBEdit in the dock Click File on the menu bar and then click Print

Adding an External Style Sheet Ideal for giving multiple pages in a Web site a common look Two-part process  Create the external style sheet  Link the style sheet to the Web page tag

Setting a Body Style BODY {margin:8pt}  The margin is the amount of transparent space between elements on the page  Can set margins for individual sides  Can be set as a fixed or relative length Background-color property  Sets the background color of the Web page Can be referenced by RGB code, hexadecimal, or color name

Setting a Table Style TABLE {font-family: Verdana, Garamond; font-size: 11pt } TH {color: navy} Oblique font  Font style that is slanted to the right by the browser when the font itself does not provide an italic version

Creating an External Style Sheet If necessary, click the Notepad button on the taskbar or BBEdit in the dock. Click File on the menu bar and then click New Enter the CSS code on the following slide

Creating an External Style Sheet Click File on the menu bar and then click Save As. Type styles1.css in the File name text box.

Linking to an External Style Sheet You must include a link tag in each of the pages to which you wish to apply the external style sheet

Linking to an External Style Sheet If necessary, click the Notepad button on the taskbar or BBEdit in the dock Click Open and open calendar.htm

Linking to an External Style Sheet Click line 4 and then press the ENTER key Type and then press the ENTER key

Saving and Printing an HTML File Save the file with calendar.htm as the file name Click File on the menu bar and then click Print

Page without External Style Sheet Page with External Style Sheet

Adding a Tag and Saving the Remaining HTML Files Open contact.htm in the the Project 7 folder Click line 4 and then press the ENTER key

Adding a Tag and Saving the Remaining HTML Files Type and then press the ENTER key Click File on the menu bar and then click Save As. Type contact.htm in the File name text box. Click the Save button in the Save As dialog box

Adding a Tag and Saving the Remaining HTML Files One at a time, open the remaining HTML files, services.htm, staff.htm, and welcome.htm, and repeat the last three steps, replacing the file name appropriately