Web Foundations TUESDAY, OCTOBER 22, 2013 LECTURE 16: WEB IMAGES.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Getting Your Web Site Found. Meta Tags Description Tag This allows you to influence the description of your page with the web crawlers.
Working with Images and HTML
Cascading Style Sheets
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.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
Cos 125 DAY 15. Agenda Left to do 6 Assignments (9 total) One per week 3 Quizzes Capstone projects First Capstone Progress Report OverDue Feb 24 Next.
Cos 125 DAY 14. Agenda Assignment #3 Graded 11 A’s, 5 non-submits Problems include Not uploading assignment sheet in WebCT Not uploading graphics to web.
Images By Tara Frieszell By Tara Frieszell. Adding images to your website will make it more interesting and add to the design. However, some viewers aren’t.
Purpose Tags are the key to marking up content on your HTML page. It’s the tags that mark up sections of the page and are defined (aesthetically) on the.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
Web Technologies Website Development Trade & Industrial Education
IT Introduction to Website Development Welcome!
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Web Optimization. So how does your site get into a search engine? 1 A search engine obtains your URL either by you submitting your site directly to the.
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 Inserting an image on a web page. chcslonline.org2 ITEMS REQUIRED Go to the course download page on the course website and download the 3 images.
Images in HTML PowerPoint How images are used in HTML.
Website Development with Dreamweaver
CIS67 Foundations for Creating Web Pages Professor Al Fichera Reference for CIS127 and CIS 137.
IDs versus Classes Naming Your Tags for Maximum Functionality.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Images. The Element To place an image on our web page, we use the self-closing element: The src attribute ("source") is required and supplies the name.
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.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
Week 1 – Beginners Content McAfee & Big Fish Games CoderDojo.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
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”
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
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.
Adding Images to Your Web Page Web Design Section 5-7 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Images. Intro What is it? Getting your image Inserting Moving Resizing Cropping.
REEM ALMOTIRI Information Technology Department Majmaah University.
Inserting an Image Using the WordPress media manager, it’s extremely simple to insert, align and link your individual images and image galleries. To insert.
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
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.
HTML Basics.
Images.
Images.
Images in HTML PowerPoint How images are used in HTML
Inserting and Working with Images
Intro to HTML Mr. Singh.
Enhancing Your Web Site
Writing html for websites and blogs
Adding Images to Your Web Page
HTML Images CS 1150 Spring 2017.
Adding Images.
Tutorial Tutorial Read all the directions before proceeding
Putting Images on Your Web Page
Basic HTML and Embed Codes
Images.
Images.
Putting An Image on Your Web Page
HTML Images.
Images.
HTML Images CS 1150 Fall 2016.
Adding Images.
Adding Images.
Pertemuan 1 Desain web Pertemuan 1
Images in HTML PowerPoint How images are used in HTML
Adding Images.
Adding Images.
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

Web Foundations TUESDAY, OCTOBER 22, 2013 LECTURE 16: WEB IMAGES

Web Images You’d be hard pressed these days to find a website that doesn’t use images. However, not all sites use images in the best possible way. Images should be used to help interaction with a site, to provide additional information and to help with aesthetics. There are several methods you can use to optimize the images on your site; including allowing search engines to index images and taking into consideration the visually impaired.

Web Images Let’s start with best practices for image tags. The following is valid and correct code for inserting an image on your page. You might call up this image with an HTML tag like and include a width and/or height attributes, or even a class. Labs.dude { margin: 0 570px; position:fixed; float: right; } The.dude class

Web Images If you wanted, you could also include an option title attribute to your code. The title attribute is used for the pop up when a visitor hovers over the image. In this case, if a user hovers over the image, they will see a pop up with the text “The Dude Abides!” which, of course, should be the specific name of the image or product. The source src is the location of the image that can either be a URL or a folder within your directory. Labs

Web Images Alt is extremely important attribute, which is used in a few different ways. It is probably also the most underused attribute in the img tag. The text assigned to alt is used when an image can’t load or is used by the visually impaired. Also, the alt attribute is what search engines use to index your image. Search engines can’t see your images but they can see the text. That’s why using the alt attribute is useful, because it not only helps the visually impaired, but it improves your SEO (search engine optimization." Because of the importance of the alt attribute, you’ll want to be as accurate as possible in describing the image using keywords that you think you’re visitors would use in order to find your site. Labs

Web Images lt is also important is how you name the image file. You’ll want to use something descriptive as opposed to using a series of numbers. If it’s a picture of a particular product, then use the name of the product. Last, the size of the image is equally important in that file size does matter in terms of page load. If you’re image appears as 50x50 on the site, then use a 50x50 image file. If you use a 500x500 image, even if you tell the browser to resize it to 50x50, the browser still loads the large-sized image and then shrinks it down. By using the large image size, you are risking the speed at which your page loads. Example: Compare the two "Iceberg" images (and the underlying code) at:

Web Images With the advent of CSS you can also set your images there, and work in all kinds of looks and effects Demo 1 Demo 2

Web Images If you want to play around with some experimental CSS3 properties and images, you can try adding a gradient mask to an image. Here’s some example code:.element2 { background: url(image.jpg) repeat; -webkit-mask: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0))); } This does use the Webkit vendor specific code, so it will only work in browsers based on the Webkit engine, such as Chrome or Safari. You can also mask an image with another image like this:.element { background: url(image.jpg) repeat; -webkit-mask: url(mask.png); /* a "Transparent" png */ } Have fun experimenting with this CSS3 code. And be sure to optimize your img tags. view-source: Chrome or Safari Only