Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.

Slides:



Advertisements
Similar presentations
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Advertisements

Cascading Style Sheets
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
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.
Chapter 8 Creating Style Sheets.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
Cascading Style Sheets Scripting with Style. CSS versus HTML  Ways to format in HTML –HTML Tag extensions –Converting Text to images –Page Layout with.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
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
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
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).
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
HTML - Quiz #2 Attendance CODE:
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
 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.
1 WDMD 170 – UW Stevens Point WDMD 170 Internet Languages eLesson: CSS Introduction to Style Sheets (NON-audio version) © Dr. David C. Gibbs
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit E Formatting with Cascading Style Sheets.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Using Cascading Style Sheet As you create more web pages, you may wish to impose a consistent look for all of your web pages or for group of related pages.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
XHTML/CSS Week 3. This Week  Quiz to revise last week (XHTML and DW)  CSS - Part 2  Using HTML Tables.
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.
CO1552 – Web Application Development Cascading Style Sheets.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
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 - Quiz #2 Attendance CODE:
Fonts The following CSS properties will be described: 1.Font-family 2.Font-style 3.Font-variant 4.Font-weight 5.Font-size 6.Font.
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
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.
CSS with XHTML Please use speaker notes for additional information!
Cascading Style Sheets Creating a Uniform Site. Style Sheets  Style sheets are used for conformity on a web page or web site.  Style sheets eliminate.
Cascading Style Sheets
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
REEM ALMOTIRI Information Technology Department Majmaah University.
Cascading Style Sheets Web Design Fairport High School.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
Style Sheets. Coding Style Sheets  Style sheets use RULES to create the style  A selector (a tag or user-defined style name)  and then declarations.
Cascading Style Sheets (CSS)
CSS Cascading Style Sheets *referenced from
Basic Webpage Design Cascading Style Sheet (CSS).
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.
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
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.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
What are Cascading Stylesheets (CSS)?
Presentation transcript:

Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets

Having Some Fun With Java Script

What is JavaScript? JavaScript is the most popular scripting language in the world. It is the standard language of the web, and widely used in Webpages and even mobile phones But Don’t Worry No Coding for you!!!!!!!!!!!!!!!!! And You Can Use It

JavaScript was designed to add interactivity to HTML pages Almost anyone can put small "snippets" of JavaScript code into HTML pages. You could insert a clock on your page You Could Insert the Current Date And Time You Could Have a Slide Show of images

How Do I Do It? All you need to do is search for the code at different Internet sites for example use Google Java Script to insert date and time on my page The code Starts with and ends with 1 You can copy all the code 2 Then insert it in the Heading Section or Body of Your Web Page

Lets Try an Example Key this simple code below with your text editor and look at it with your browser to make sure it works Java Script Example This is my GIS416 class Welcome to My Website The objective for today is to get an idea of how Java Script Works

Go to the site below and find the code to insert the Date and Time Highlight and Copy the code

Java Script Example This is my GIS416 class Welcome to My Website The objective for today is to get an idea of how Java Script Works Paste Your Code Here Just before the

Your Webpage should look like this

This was a very basic example But!!! Basically…… That’s all you have to do

CSS? CSS defines how to display your Web Pages Cascading Style Sheets Style sheets are very predominant when creating Web Sites If you download and use Web Templates you will see they also come with Style Sheets

CSS defines HOW HTML elements are to be displayed, Just like the font and the color tags in HTML Styles normally saved in external.css files. External style sheets enable you to change appearance of all the pages in your Web site by editing one single CSS document!

Why Cascading Style Sheets Anyone Creating a Web page must Link to the style.css document to format their web page This is how companies set standard for all employees when creating web sites

? ? Show Me?

Create a folder for yourself and use your text editor to create the following document………..call it mypage2.html Polar Bear Page This is my GIS416 class Welcome to My Website The objective for today is to get an idea of how Cascadding Style Sheets work. The term is CSS This line will reference an external Style sheet that you will create next.

Use your text editor and create a style sheet definition file call it………ex1.css…save it in the same folder as your mypage2.html file. Just enter what you see below body {background-color: yellow} h1 {font -size: 36pt} h2 {color:blue} p {margin-left: 50px}

Use Your Brower and open the mypage2.html file It should look like this. This web page references the style sheet you created for formatting.

Remove the line indicated from you mypage2.html file and re save it..then look at it with your browser Polar Bear Page This is my GIS416 class Welcome to My Website The objective for today is to get an idea of how Cascadding Style Sheets work. The term is CSS Remove this Line

It will look very plain…no formatting

Many times the style definition will be put right into the HTML document so you don’t need to have to files. The style definitions can be put in the heading section. The STYLE TAG …………………

Method 2: Internal Example body {background-color: #FF0000;} This is a red page -using the HTML tag

Polar Bear Page body {background-color: yellow} h1 {font -size: 36pt} h2 {color:blue} p {margin-left: 50px} This is my GIS416 class Welcome to My Website The objective for today is to get an idea of how Cascadding Style Sheets work. The term is CSS Use your text editor Enter this code Save as mypage3.html Look at it with your browser

Your Webpage should look like this one The style sheet definitions are embedded in the webpage code within the heading section

Using Style 1

Using Style 5

Example You want a RED BACKGROUND With HTML body {background-color: red} CSS Coding Almost Looks Like HTML

body {background-color: #FF0000;}

How Do We Get to the Style Sheet ? How Does This Thing Work ? Create a LINK HTML document to the STYLE sheet Code must be inserted in the header section of the HTML Between the and tags.

html> head> title>My document... Browser uses the layout from the CSS file when displaying the HTML file. Several HTML documents can be linked to the same style sheet. One CSS file can be used to control the layout of many HTML documents.

Different background colors Applied to and elements. Example body { background-color: #FFCC66; } h1 { color: #990000; background-color: #FC9804; } Two properties to are divided by a semicolon.

body { background-color: #FFCC66; background-image: url("butterfly.gif"); } h1 { color: #990000; background-color: #FC9804; } Assume You want a Background image of a Butterfly Image is in the same folder as the Style Sheet

Avoid Repetition of the Background Image body { background-color: #FFCC66; background-image: url("butterfly.gif"); background-repeat: no-repeat; } h1 { color: #990000; background-color: #FC9804; }

Style Sheets Using Fonts onts Font family [font-family] Used to set a prioritized list of fonts for a web page. If the first font on the list is not installed on the computer used to access the site the next font on the list will be tried until a suitable font is found. The Property

Sample Prioritized List of Fonts h1 {font-family: arial, verdana, sans-serif;} h2 {font-family: "Times New Roman", serif;}

will be displayed using the font "Arial". If this font is not installed on the user's computer, "Verdana" will be used instead. If both these fonts are unavailable, a font from the sans-serif family will be used to show the headlines.

Font style [font-style] Defines the chosen font normal, italic or oblique. h1 {font-family: arial, verdana, sans-serif;} h2 {font-family: "Times New Roman", serif; font-style: italic;} See Sample Next Slide

H2 line is italicized

Font weight [font-weight] BOLD A font can either be normal or bold. p {font-family: arial, verdana, sans-serif;} td {font-family: arial, verdana, sans-serif; font-weight: bold;} See Next Slide For Sample

Code used to describe font-properties for : p { font-style: italic; font-weight: bold; font-size: 30px; font-family: arial, sans-serif; } Or p { font: italic bold 30px arial, sans-serif; }

Let’s Talk About TEXT and CSS..zzz

Text indention [text-indent] A 30px is applied to all text paragraphs marked with : p { text-indent: 30px; } SAMPLE

p {font-family: arial, verdana, sans-serif;} td {font-family: arial, verdana, sans-serif; font-weight: bold;}

Text alignment [text-align] LEFT RIGHT CENTER JUSTIFY is aligned to the right Table data are centred. Text paragraphs are justified: th { text-align: right; } td { text-align: center; } p { text-align: justify; }

Text alignment Text alignmen in table Heading 1 Heading 2 Cell 1 Cell 2 Cell 3 Cell 4 Plain HTML Code

Text decoration [text-decoration] ( Underline Text ) are underlined headlines, are headlines with a line above the text are headlines with a line though the text. h1 { text-decoration: underline; } h2 { text-decoration: overline; } h3 { text-decoration: line-through; }

Let’s Talk About Links Briefly Links specified in HTML with tags. We can therefore use a as a selector in CSS: a { color: blue; } Links Can Be Visited and Not Visited

a:link { color: blue; } a:visited { color: red; } Link Not Not Clicked on Yet

OK So Were Done !!! Time For Simple Exercises