1 Custom Background And Colors Text Formatting and Font Control Using Images Using HTML and JavaScript to Develop Websites.

Slides:



Advertisements
Similar presentations
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Advertisements

Cascading Style Sheets
Chapter 2 HTML Basics Key Concepts
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.
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.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements.
Hypertext Markup Language. Platform: - Independent  This means it can be interpreted on any computer regardless of the hardware or operating system.
HTML Computing Concepts HTML - An Introduction 1.
Tutorial 3 Designing a Web Page.
David Lash DePaul University SNL 262 Web Page Design Chapt 10 - Custom Background And Colors Chapt 6 - Text Formatting and Font Control Instructor: David.
AdvWeb-1/12 DePaul University SNL 262 Web Page Design Chapt 10 - Putting Graphics on A Web Page Instructor: David A. Lash.
Marking Up With Html: A Hypertext Markup Language Primer
There is a certain way that an HTML file should be set up. The HTML section declares a beginning and an ending. Within the HTML, there should be a HEAD.
More HTML Chapter 4. 2 Nesting Tags How do you write the following in HTML? The wrong way: This is really, REALLY fun ! Tags must be correctly nested.
AdvWeb-1/9 DePaul University SNL 262 Web Page Design Chapt 11 - Custom Background And Colors Instructor: David A. Lash.
WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.
ABC’s of PowerPoint (Office 2007) Part 1: Basic Vocabulary Part 2: Cursors Part 3: Insert Your Text Part 4: Insert Your Pictures Part 5: Basic Tools &
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Basic HTML The Magic Of Web Pages. Create an HTML folder  Make a folder in your H drive and name it “HTML”. We will save EVERYTHING for this unit here.
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).
Primaries: magenta, yellow, and cyan This color system is called subtractive because: each primary color absorbs (subtracts) a certain part of the color.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
Creating Web Pages with Links, Images, and Formatted Text.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
THE BACKBONE OF EVERY WEB PAGE HTML Day 1. What will we learn? How to create a basic web page Backgrounds and colors How to link Web sites How to include.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements © 2007 Prosoft Learning Corporation All rights.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
IT Introduction to Website Development Welcome!
Enhancing Your Web Site. More Basic HTML Tags Today you will learn these tags: & add-on (alt, height, width & align) and “href” add-on Add a text link.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Formatting Text and Lists Essentials for.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
15.2 More Basic HTML. More Basic HTML Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features.
 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.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 3.
Getting Started with HTML Please use speaker notes for additional information!
G053 Lecture 12 Introduction To HTML Mr C Johnston ICT Teacher
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
 Komodo Edit Project › Helping you find your folder  Laptop › Delete what you don’t need › Keep class “doodles” in a single “sandbox” folder  Isis.
1 Using HTML and JavaScript to Develop Websites. Using Images.
HTML tags Some popular ones. Paragraph: separated by a single line of white space Line break NOTE: no end tag is used for this tag Headlines ( through.
Notes Chapter 10—Adding Graphics. There are two kinds of graphics on the Internet: those you can use on your own Web pages, and those you cannot.  Many.
Chapter 2 Designing Web Pages With HTML JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,
 To specify blue as the background color for a page, put bgcolor=“blue” inside the tag. Of course, you can use many colors other than blue. You can choose.
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.
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
AGB 3/26/121 ++=. 2 Yes, believe it or not this is a complete webpage. It has a Head, Title and Body between the start and end HTML Tag.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
1 Start TextEdit. 2 Creating a Home Page  A home page is the main page of a Web site –Visitors usually view the home page first –Identify the purpose.
CSS Cascading Style Sheets *referenced from
Revised June 2008 Online PD Basic HTML1 Let’s Try It!  Open Notepad oStart > All Programs > Accessories > Notepad oDon’t get WordPad by mistake – won’t.
Basic Web Publishing M. Scott Gartner 7/15/98.
G053 Lecture 12 Introduction To HTML Mr C Johnston ICT Teacher
Let’s Try It! Open Notepad
Online PD Basic HTML The Magic Of Web Pages
CNIT 131 Graphics.
Colors.
Hyperlinks, Images, Comments, and More…
Presentation transcript:

1 Custom Background And Colors Text Formatting and Font Control Using Images Using HTML and JavaScript to Develop Websites.

2 What we talked about last time... l Creating Lists »Ordered Lists ( … &.. ) » Unordered Lists ( … &.. ) »Definition lists ( …,.., … ) »Lists within lists (remember to match up start and end of lists). l Creating HTML links »Creating absolute links – my home page »Creating relative links – my FAQ Page »Creating links – Mail me please

3 What we will look at: l Putting Background Color on pages »How to specify color »Using background “tile” images l Working with font styles and colors »Underline, bold, italics »Working with the font tag –size, color and style l Using special characters ($, #) l Using Image Files

4 Competency Objectives 1. Can add color and background images to a page. (Can create a tile effect). 2. Can control font style, size and color. 3. Can place image files on a web page. Competency Alert: You need to know this ! Common Problem Area! People seem to forget this

5 Color Attributes For Body Tags l The BODY Tag has specific attributes to set up the colors on your web page: »Background Color: »Link Color »Recently Visited Links »Links Briefly blink when someone visits them: »Put it all together Competency Alert: You need to know this !

6 Body attribute example DePaul Link Here is a site I like, it is called next.html Before you visit page link in red While click link and waiting for page load link in yellow If visit page again, link in white indicating you’ve clicked it recently

7 16 Standard Colors l You can select from 16 standard “named” colors that include : »black, white,red, green, »blue, yellow, magenta (aka fuchsia), »cyan (aka aqua), purple, gray, lime, » maroon, navy, olive, silver and teal.

8 Mix & Match Colors l The RRGGBB Format many colors possible. Amount of Red (from 0-255) Amount of Green (from 0-255) Amount of Blue (from 0-255) Note RRGGBB is the same color scheme used by television sets to view color. It is also the 3 colors your eye naturally sees.

9 But Why Only 2 Digits? l Intensity of RED, GREEN, or BLUE »Specified as a HEXIDECIMAL (that is base 16). –255 = xFF - Says 100% of the intensity. –204 = xcc - Says 80% intensity. –153 = x99 - Says 60% intensity –102 = x66 - Says 40% intensity. –51 = x33 - Says 20% intensity. –00 = x00 - Says 00% intensity. l So what color would be: » Note Hexadecimal numbering is base 16. Each base 16 number can be represented in our base 10 numbering system

10 Browser safe colors l With 256 possible Reds, and 256 Greens and 256 blues there are 16,777,216 possible colors l Which ones should you use? »Browser Safe Colors ? – Originally, Netscape created a browser color pallet of 256 colors that was common to the monitors of the time. »Windows reserves 40 of these colors for displaying windows elements. (Leaving 216 browser safe colors). »These days, most monitors and computers can display thousands (if not millions of colors) but most people design with the 216 colors in mind. Note you can see a browser safe color chart at: Here is a complete color chart orhttp:// Also

11 Background Images l You can use an external file for "wallpaper" or background image. »Wallpaper is a small picture file that is repeated over and over on the background »An example from Teach Yourself HTML in 24 Hours, that uses tiling or wallpaper ( that uses tiling or wallpaper »Here is the gif file »( l For example If this is your image, it would be stored in an external file (say back.gif) on your site. Welcome To my site Tiling repeats that file over and over like wallpaper on to the background of your site.

12 A Noisy Tile example Sample Page This is an example web page. I don't recommend 5. actually using very noisy background images. It does not look too good. 6. But you never know why someone does some things

13 How do you do that? 1. Find a background image file (more on how to find on next slide). 2. Save the image file onto your webserver. (That is, use FTP to copy over to your webserver.) 3. Change your body tag to indicate the background image file: This list indicates to use the tile.gif as the background image. This file must be on the webserver in the same directory as the HTML document.

14 More On Background Images l Finding backgrounds (Certainly can search google): »Check out the Yahoo Index ( d_Layout/Graphics/Backgrounds/)the Yahoo Indexhttp://dir.yahoo.com/Arts/Design_Arts/Graphic_Design/Web_Page_Design_an d_Layout/Graphics/Backgrounds/ l How to “use” a background image from one of these sites: 1.Goto the site (lets try 2.Find image you like, put cursor over the image 3.Right click the image and select save picture as. 4.Save the image to your hard drive. 5.Include the name of the file in your body tag: 6. Remember to copy your background file to your webserver when you publish Try this process now.

15 Objectives l Putting Background Color on pages »How to specify color »Using background “tile” images l Working with font styles and colors »Underline, bold, italics »Working with the font tag –size, color and style l Using special characters ($, #) l Using Image Files

16 Changing font styles. l Working with font styles and colors italics. E.g., »BOLD, »underline, »ALL 3 at once, »BIG LETTERS »small letters »Many different font styles »Lots of different colors!

17 Simple Font Control Tags

18 Simple Font Control Tags - II

19 The tags nest... Sample Page Welcome to my site. It is my precious site I said stay away from you are ok. Man this stuff C a n really Get confusing Fast. Common Problem Area! People seem to forget this

20 Controlling Size, Color & Style l The typeset of the font can be controlled with the FONT tag. This includes the Size, color, and style of the font. l Basic tag was the tag with arguments: »size= »color= »style=

21 Controlling Color l The tag supports the same set of colors as background: »16 named colors –(black, white,red, green, blue, yellow, magenta (aka fuchsia), cyan (aka aqua), purple, gray, lime, maroon, navy, olive, silver and teal) hello »hexadecimal color names Hello Competency Alert: You need to know this !

22 Font Color Nesting Example Sample Page Welcome to my interesting site. 5. Notice how the font colors will 6. will nest just like the other tags. Its a matter of keeping 7. track of your tags 8. 9.

23 Controlling Size l HTML supports 7 different sizes of fonts; »size can be 1 (tiny) to 7 (large) »The default is size=3 which is about word pt10. »Hello world l You can also specify size relative to the default font SIZE=3. Absolute Value | 1 | 2 | 3 | 4 | 5 | 6 | 7 Relative Value | -2 | -1 | - | +1 | +2 | +3 | +4 l For example, Hello world Note: Actually you can get more than 7 sizes but you need to use cascading style sheets. We talk about that later. Competency Alert: You need to know this !

24 Font Size Example Sample Page Notice how the font changes from to size Next the font will shrink to size Now a relative specification that jumps to 5 (2+3) 7. When end the tag goes back to Its a matter of keeping 9. track of your tags (again.) So lets finish with 7 10.

25 Controlling Font Style l To control font style, need to know the name of the font. l For example, This would be Algerian l Can specify more than 1 font on a attribute. E.g., l Browser will try to use Lucida Sans Unicode, then arial then helvetica, if none available would use default (roman times).

26 Color Example Big & Purple Example Baseball WhiteSox 10. Cubs 11. Wrigley Field Football

27 Mixing Color, Style & Size l You can include multiple arguments in tag to get multiple effects Hello l You can have layers of tags. Competency Alert: You need to know this ! THIS is a sample web Page Welcome To Exploring The Internet The Place to BE

28 Objectives l Putting Background Color on pages »How to specify color »Using background “tile” images l Working with font styles and colors »Underline, bold, italics »Working with the font tag –size, color and style l Using special characters ($, #) l Using Image Files

29 Inputting Special Characters l Entering special characters like pound sign (#), copyright sign, cent sign, etc.? l Each special character has a numeric code to use to represent it. »For example, enter the character sequence of &#162 to get the ¢ sign. »To display right bracket) enter &lt or &gt. »Example to get you need to enter <META&gt l Here is an updated link with all the special characters supported. ( Here is an updated link Competency Alert: You need to know this !

30 Special Character Example... Some Example With Special Characters This line is Blue and size 4 This line is Blue and size 5 This line is GREY and size 6 A sample of the &lt font&gt tag. This line is size 3 and is &#177 10% smaller This line is size 2 and is squared&#178

31 Some Common Special Characters l Using special characters (e.g., #, “&quot &&amp >&gt <&lt CharacterSpecial Character Note: A blank space is represented by

32 Objectives l Putting Background Color on pages »How to specify color »Using background “tile” images l Working with font styles and colors »Underline, bold, italics »Working with the font tag –size, color and style l Using special characters ($, #) l Using Image Files

33 Using Image Files l Images are stored in separate files. »They are essentially linked to your website. l There are many different ways to create or find digital images »Digital cameras - If you save the image in a standard format (E.g., gif, jpg), you can include on your web page »On-line searches – E.g., search google for free clip art »To save a image off the web: 1.Put your cursor on the image. 2.Right click then -> save image as... 3.Save the image on your PC. (Make sure it is a gif, jpg, png suffix file.)

34 Types of Graphical Image Files There are 2 dominate types of file formats for graphic images on the WWW l GIF (Graphic Interchange Format) – » the first graphic file type format uses 8 bit or 256 possible colors. »are platform independent »particularly good for areas of flat colors like logos, cartoons, icons. »Does not good for photographic images since it reduces all images to 256 colors. l JPEG (Joint photographic Experts Group) »Uses a 24 bit RGB color information, (displays 8 bit colors on 8bit color systems) » ideal use for photographs. Not good at compressing images with solid colors such as logos, line art and cartoons. On a side note, Unisys held the patent on the compression method that gif files uses. In 1994, announced will charge for sites using GIF, causing people to move towards nonproprietary format. This patent has run out in the USA.

35 What is Digital Image? l A format for encoding a way to represent a picture using RGB color format »Each pixel to display needs to have a RGB value »Less colors you display the smaller the image –(since can compress the image more) l Gif format specification allows you to discribe more than 1 image »There is a delay to show each image giving an animation effect. (but no sound)

36 Placing Image on a Web Page The basic command to include images is: You can use a relative or absolute address to the image: l Question: It linking to an image file on an external site generally a good idea? l Question can you legally copy images without asking permission? Note: if you have trouble linking to an image, ensure that you are specifying the filename correctly. Check to see if the image file name is capitalized or lower case.

37 Dealing With Bad Links... l Below shows an example of a bad image link. l Some things to check if this occurs: »Is file name specified/spelled correctly? »Is file path correct? (e.g., it is in a different directory) »Is the image suffix correct? (myfile.gif, myfile.jpg) »Any capitalization in the filename? »Is the file the correct format (e.g, a bmp file won’t work) Common Problem Area! People seem to forget this

38 Using The ATL Attribute... l The ALT specifies text to display if a user has graphic images disabled. l Format : » Note: The ALT tag has a nice side effect: When you hold cursor over image, it displays the ALT text.

39 Which to use gif or jpg? l Typically might look at image in both formats to see best for your site jpggifs High-quality images with lots of colorsUsed for logos, ads with uniform colors > 16 million colorsUp to 256 colors No transparencies or animationTransparencies and annimation

40 Summary l Putting Background Color on pages »How to specify color »Using background “tile” images l Working with font styles and colors »Underline, bold, italics »Working with the font tag –size, color and style l Using special characters ($, #) l Using Image Files

41 Some Key Tags We Covered l l Named colors and specify Hexidecimal number »Browser Safe Colors, l l,, l » l Special character (e.g., $, need special numerical characters »&#162 to get the ¢ sign. »<META&gt to get » to get 2 blank spaces. l Including image files »

42 Module 1 Hands on Assignment l Create an HTML file that looks like the following:

43 One possible solution Sample Page While this is not a very attractive site. 5. The following text is in red. 6. Still this text is in purple. 7. and the following text is size 4 8. Now this text is style arial. 9. But what do you suppose is this text? 10.

44 Another lab exercise... l Create an html document that looks as follows: You can view the background image at: