Presentation is loading. Please wait.

Presentation is loading. Please wait.

IT 117 - Introduction to Website Development Welcome!

Similar presentations

Presentation on theme: "IT 117 - Introduction to Website Development Welcome!"— Presentation transcript:

1 IT 117 - Introduction to Website Development Welcome!

2 Welcome to Unit 5! Images and Colors This week’s reading: Read Lesson 4 and work through the labs Be sure to read the PDF file Working With Graphics, Resolution and Color

3 Introduction Unit 5 is about graphical elements and how to add images to your Web pages. You will review image file paths, file formats, image attributes. You will also learn how to include horizontal rules in your Web pages to separate sections of data.

4 To-Do-List Review Key Terms On the Reading page Read Assigned Text On the Reading page Respond to the Discussion Board 30 Points Lists, Cascading Style Sheets, and Deprecated Tags Complete the unit project and upload to assignment dropbox In unit 6 for grading 50 Points On the Assignment page Attend the Weekly Seminar or complete the FLA quiz 20 Points Log in from Student's Home page

5 Readings Overview Read Lesson 4 and work through the labs. You do not need to work lab 4.6: Formatting text with the tag, because the tag has been deprecated in favor of using CSS. You should however look the lab over so you will be familiar with the use of the tag. You are sure to encounter in your career.

6 Readings Overview Textbook Reading Summary: Lesson 4 and its labs will review file formats, image size and resolution, and inserting images on a web page. It will also explore how to format text around your images, alignment and the use of horizontal rules.

7 Seminar Overview This week’s Seminar session is about editing and adding images to your Web pages. We will review file paths, file formats, and discuss sizing.

8 Images in Web Pages Has anyone tried adding an image to the page? What HTML tag would you use to insert an image?

9 Images in Web Pages Use the tag to insert an image file using either of two formats to close the tag: 

10 Images in Web Pages Image file formats  Graphics Interchange Format (GIF)  Joint Photographic Experts Group (JPEG)  Portable Network Graphics (PNG)

11 Comparing Image File Formats FormatTransparencyInterlacingCompressionAnimation GIF Yes JPEG (standard) No YesNo PNG Yes

12 Images and the alt Attribute In XHTML, every image must follow good coding practice by including the alt attribute with a corresponding value Code will not validate as XHTML without this attribute Browsers and screen-reader technology can read alt description and render it in audio for disabled users 

13 Images in Web Pages You can store images in the root directory, or create the "images" folder The path will reflect your folder structure

14 Combining Background Images and Colors The bgcolor attribute:  Specifies background colors The background attribute:  Inserts an image as a background If you use both the bgcolor and background attributes in a tag, then only the attribute specified last in the tag will render

15 Aligning Images Relative to Text The align attribute positions images relative to text Values include:  "bottom"  "middle"  "top"  "left"  "right”

16 Aligning Images Relative to Text The align attribute has been deprecated in favor of style sheets, but can still be used; code will still validate as XHTML 1.0 Transitional

17 Review The tag embeds an image in an HTML page. Notice that images are not technically inserted into an HTML page, images are linked to HTML pages. The tag creates a holding space for the referenced image. The tag has two required attributes: src and alt.

18 Review In HTML the tag has no end tag. In XHTML the tag must be properly closed. Src - Specifies the URL (the LOCATION) of an image, including the file name What other properties can you specify for an image?

19 Specifying Colors Colors can be specified by name or by Hexadecimal "Red Green Blue (RGB)" value

20 Web-Safe Color Palette A set of 216 colors guaranteed to render properly Ensures that colors in pages render as expected  If you specify a color not supported by the monitor or operating system, the system will approximate the color, a process called dithering  Unexpected results may occur as the result of dithering

21 Page Colors and Backgrounds Specifying page colors: Specifying text color on the page:  Specifying color of unvisited links:  Specifying color of visited links:  Providing a background image: 

22 Web Design Issues Color combinations  Popular color combinations Consider existing sites  Habitat for Humanity (  Microsoft (  Red Hat ( Cultural and audience concerns

23 Web Design Issues  Page layout Layout guidelines Document structure, the tag and style sheets Relative path names White space, the tag and XHTML

24 HTML Tag Definition and Usage The tag creates a horizontal line in an HTML page. The hr element can be used to separate content in an HTML page.

25 HTML Tag Example: This is some text.

26 Project 5 Unit Outcomes: Integrate an image into a Web page. Apply the “alt” tag to a web image Apply alignment of images relative to text with XHTML Course Outcome: IT117-2: Create web sites using web page building blocks.

27 Project 5 Project Instructions: For the Unit 5 project, you will be adding images to your Web pages. All images for this project must be either GIF or JPEG files. Images should be sized to fit appropriately on each Web page. Your images should be contextual or related to the page topic. In other words, make sure the images you add to the page, add value to the page and are not a distraction. The labs you worked through in lesson 4 will have prepared you for this project. Tip: All images must be uploaded to the appropriate subfolder located on your server and the file path must be correct in your code.

28 Project 5 Create a subfolder named images within the folder you previously created to hold your web files on your computer. Plan to save all your jpg and gif files here. Your path to images will be images/imagename.jpg. Create a subfolder on your web server space and name it images. Plan to upload all your jpg and gif files to this folder. Your path to images will be images/imagename.jpg. (Refer back to the topic “Relative path names” in lesson 4, if needed).

29 Project 5 Insert a horizontal rule somewhere on your index.html page. (See lab 4.1). Insert one image on your index page and a second image on your bio page. These can be a graphic or photo of your choice, but it would be great to include your headshot on your bio page! (see lab 4.2) Add the alt attribute within each image tag. Choose your own alt text to appear with each image. (see lab 4.2)

30 Project 5 Align images relative to text with XHTML. (see lab 4.3) Upload the index.html and bio.htm pages plus your two image files to your Web server space. Make sure you place your image files in the images subfolder. Test your online pages by going to each complete URL to ensure your images display as expected.

31 Project 5 - Grading Rubrics 1. Added an image to the index.html page : 0-10Z 2. Added an image to the bio.htm page : 0-10 3. Aligned both images to text with xhtml : 0-10 4. Applied the alt attribute to both images : 0-10 5. Added a horizontal rule to index.html : 0-10

32 Thank you! Feel free to contact me with any questions! Use the Virtual Office to post questions throughout the week, as well as to upload your zipped folder if you need me to look at the code!

Download ppt "IT 117 - Introduction to Website Development Welcome!"

Similar presentations

Ads by Google