Putting Images on Your Web Page

Slides:



Advertisements
Similar presentations
Working with Images and HTML
Advertisements

1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Tutorial 5 Working with the Box Model. XP Objectives Understand the box model Create padding, margins, and borders Wrap text around an image Float a block-level.
Add Images to Improve Your Presentation Day 8. You will learn to Understand Graphics Formats Find Graphics Create Your Own Images Insert an Image on Your.
Introduction to HTML Lists, Images, and Links. Before We Begin Save another file in Notepad Save another file in Notepad Open your HTML, then do File>Save.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
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.
CSS Box Model. What is the CSS Box Model? The “Box Model” is a tool we use to lay out our web pages in a number of individual "boxes" or "containers".
Adding Images & Working with Images Unit 2. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date:08/10/2009 Period : Summary: To display Art To display Photographs.
ITP 104.  While you can do things like this:  Better to use styles instead:
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
Unit E. Image Measurements The size of an image can be measured 2 ways: Dimensions: the height and width, measured in pixels. File Size: measured in Kilobytes.
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.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Images in HTML PowerPoint How images are used in HTML.
ITP 104.  Basic HTML using and form  Using Filezilla  public_html ▪ 755 permission  Have a directory name itp104 ▪ 755 permission  classpage.html.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
Web Foundations TUESDAY, OCTOBER 22, 2013 LECTURE 16: WEB IMAGES.
CSCE 102 – Chapter 6 (Web Design and Layout) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
Adding Images Learning Web Design: Chapter 7. Using an Image Images have many purposed on a Web site Used as a static image To add illustration: ex. A.
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.
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
Enhancing Your Web Site 2 assignments: 1st—complete the worksheet 2nd—create your 3RD HTML web page following the directions in this PowerPoint where it.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
Basic Webpage Design Mark-up html document with images.
REEM ALMOTIRI Information Technology Department Majmaah University.
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
Web Design (17) CSS Box Element (2). ‘Box’ Web Site (1) Insert a navigation bar into the index.html file and create links to ‘index.html’, ‘pageone.html’
TNPW1 Ing. Jiří Štěpánek.  Tags  Marks for elements ▪ Pair ▪ Start and end tag ( Paragraph text ) ▪ Single ▪ Only start tag, according to XHTML 1.0.
CSS.
Laying out Elements with CSS
CSS Box Model.
CSS Box Model.
CSS Box Model.
Cascading Style Sheets Boxes
CSS Layouts: Grouping Elements
Images in HTML PowerPoint How images are used in HTML
Inserting and Working with Images
Linking With Graphics INP150: Basic HTML March 25, 2002.
Advanced CSS BIS1523 – Lecture 20.
Web Design and Development
HTML Images CS 1150 Spring 2017.
Web Development & Design Foundations with HTML5 7th Edition
Cascading Style Sheets
Web Development & Design Foundations with HTML5 8th Edition
Tutorial Tutorial Read all the directions before proceeding
MORE Cascading Style Sheets (The Positioning Model)
CSS Box Model.
Basic HTML and Embed Codes
Putting An Image on Your Web Page
More CSS Page layout Boriana Koleva Room: C54
HTML Images CS 1150 Fall 2016.
Training & Development
CSS Box Model.
Lesson 7 Graphics.
CSS Boxes CS 1150 Fall 2016.
CSS Box Model.
CSS Box Model.
ITI 133: HTML5 Desktop and Mobile Level I
Positioning Boxes Using CSS
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

Putting Images on Your Web Page Tags, Attributes & Considerations

img Tag src  specify the file name & extension of the picture width & height  of the picture in pixels alt  Short description of the picture in words

Attributes Considered in a Bit More Detail

src Filename is case-sensitive Spaces in filename cause problems Naming convention for us: Keep filenames fairly short Separate words with hyphens Filenames should make sense to describe image

Where should the file actually be located The pictures are still separate from the page If src=“filename.jpg”…. filename.jpg sits directly next to the web page in the SAME folder If src=“images/filename.jpg”… filename.jpg sits inside a folder called images that is in the same folder as the web page

height & width Why specify? So browser knows how much space to leave for the picture as the page renders Click on pic in folder to see its Dimensions

Description of what the picture shows Why? alt Description of what the picture shows Why? some of your visitors cannot see images alt attribute is of great help for those search engine bots can use this info

Styling an Image Controlling images with style sheets

No Style, <p> and <img> separate

No Style, <img> is Child of <p> Next to text – but only 1st line of it

Floating Left Note – for float to apply as shown, the image Must occur BEFORE the text. Floating Left

Floating Right Note – for float to apply as shown, the image still Must occur BEFORE the text. Floating Right

Increase space next to picture Margin Just consider the image as a box-model object Increase space next to picture

Border

Padding

Adds a shadow to any box-model object Box-Shadow The Shadow Adds a shadow to any box-model object Amount out to right (make negative to go left instead) Amount out to bottom (make negative to go up from top instead)

Adds a shadow to any box-model object Box-Shadow The Shadow Adds a shadow to any box-model object Color (optional)

Amount of blur (optional) Box-Shadow The Shadow Adds a shadow to any box-model object Amount of blur (optional)

Higher Number = Rounder Border Radius Corners Rounded Can apply to any box-model object Higher Number = Rounder

Border Radius – Shorthand 4 values: top-left, top-right, bottom-right, bottom-left 3 values: top-left, top-right and bottom-left, bottom-right 2 values: top-left and bottom-right corner, top- right and bottom-left corner 1 value: all four corners are rounded equally

Border Radius

Accessibility Issues to Keep in Mind Don’t let pictures be the only representation of important text content.

Words in Graphics Able to make fancy words Not considered as same structure of page Whereas words will have semantic meaning to structure, pics will not