HTML Images CS 1150 Fall 2016.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
HTML Introduction. What we have learned so far:  2.1 Basic HTML page development  2.2 Tags… (example?)  2.3 Lists… (example?)  2.4 Single Tag… (example?)
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
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.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
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.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
Web Foundations TUESDAY, OCTOBER 22, 2013 LECTURE 16: WEB IMAGES.
Add an Image. index.html about.html contact. html contact. html.
Web Design (7) Images (1). Images and the Image Element Images can be placed in the flow of text..jpg,.png and.gif image files work in web pages The img.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
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.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
Slide 1 Graphics (Characteristics 1) Images have various characteristics that affect performance Size (number of pixels) – Large images can be several.
REEM ALMOTIRI Information Technology Department Majmaah University.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
Images can set the tone for a site in less time than it takes to read a description. CHOOSING IMAGES FOR YOUR SITE.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Fall 2016 CSULA Saloni Chacha
HTML Basics.
HTML basics
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
LAB Work 01 MBA 61062: E-Commerce
Images in HTML PowerPoint How images are used in HTML
Inserting and Working with Images
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Intro to HTML Mr. Singh.
DW Tutorial 5 Sessions 5.1 & 5.2 REVIEW
3.00cs HTML Overview 3.00cs Develop webpages.
Hosted by Coach Slanina
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Web Design and Development
GRAPHICS(IMAGES) Explained By: Sarbjit Kaur.
Adding Images to Your Web Page
HTML Images CS 1150 Spring 2017.
Tag Basics.
COMPUTING FUNDAMENTALS
Chapter 3 Images.
Web Development & Design Foundations with HTML5 7th Edition
Adding Images.
Graphics (Characteristics 1)
Creating a Web Page Using HTML
3.02D HTML Overview 3.02 Develop webpages.
Basic HTML and Embed Codes
HTML Introduction Lecture 8.
Pertemuan 1b
Adding Images.
Adding Images.
Pertemuan 1 Desain web Pertemuan 1
Lesson 7 Graphics.
Images in HTML PowerPoint How images are used in HTML
3.02D HTML Overview 3.02 Develop webpages.
4.02A HTML Overview 4.02 Develop web pages using various layouts and technologies. (Note to instructor: HTML tags are in red only to differentiate from.
Adding Images.
Adding Images.
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

HTML Images CS 1150 Fall 2016

The <img> Element To add an image to a webpage, you need the <img> element The <img> element is an empty element, which means there is no closing tag All <img> elements should contain attributes describing the image The src attribute tells the brower where it can find the image file The alt attribute provides a text description of the image which describes the image if you cannot see it The title attribute provides additional information about the image. Most browsers will display the title in a tooltip when the user hovers over the image

More Attributes for the <img> Element Often, you will see the <img> element described by the following attributes Height – this specifies the height of the image in pixels Width – this specifies the width of the image in pixels The size of images is increasingly being specified using CSS rather than HTML

An Image Example <img src="images/kitten.jpg" alt="Kitten" title="kitten“ /> Example file: https://cs.mtsu.edu/~crn2k/public/courses/1150/image.html

Image Alignment The align attribute was commonly used to indicate how the other parts of a page should flow around an image Left – aligns the image to the left, allowing the text to flow around its right-hand side Right – aligns the image to the right, allowing the text to flow around its left-hand side Example file: https://cs.mtsu.edu/~crn2k/public/courses/1150/image_align.html This has been removed from HTML5 and new websites should use CSS to control the alignment of images We will use HTML image alignment until we learn how to align images with CSS

Tips for Adding Images Save images in the right format. Most images found on websites are .jpg, .png, or .gif format Save images in the right size. The image should be the same width and height that it will appear on the website, measured in pixels. Measure images in pixels. When you are saving images for use on the web, make sure you measure the image in terms of pixels.

Using an Image as a Link To use an image as a link, nest the <img> tag inside the <a> tag <a href=“https://en.wikipedia.org/wiki/Smile”> <img src=“smile.jpg” alt=“Smiley Face” title=“Smiley Face”> </a> Example file:

Helpful Links for Website Images http://www.w3schools.com/html/html_images.asp