Basic Webpage Design Mark-up html document with images.

Slides:



Advertisements
Similar presentations
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Advertisements

HTML Images. The Image Tag and the Src Attribute  In HTML, images are defined with the tag.  In HTML, images are defined with the tag.  The tag is.
LIST- HYPERLINK- IMAGES
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?)
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
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.
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.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
Colour & Image in HTML Wah Yan College (Hong Kong) Mr. Li C.P.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Chapter 19: Adding JavaScript
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
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 (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.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Reference for CIS127 and CIS 137.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
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 
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
XHTML1 Images N100 Building a Simple Web Page. XHTML2 The Element The src attribute specifies the filename of an image file To include the src attribute.
CSCE 102 – Chapter 6 (Web Design and Layout) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
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”
1 CHAPTER 03: GOING FURTHER By Tharith Sriv. This chapter covers the following topics:  Flying texts or images  Using Comment  Using tag  Using …
C H 07: M ORE A BOUT HTML Tharith Sriv. O UTLINE You have already learnt almost everything in HTML. In this chapter, you will learn more about:  An HTML.
Image Map You can define a region on your image as clickable. Add usemap=“mapname” parameter to your image. Add a tag to your html where name of map tag.
 You can also divide an image into regions that link to different documents depending on where someone clicks.  This is called an imagemap, and any.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
HTML Images Dr. Baker Abdalahq. The Image Tag and the Src Attribute In HTML, images are defined with the tag. In HTML, images are defined with the tag.
1 Chapter 05: Creating Your Form. What is a Form? When you visit some websites you see a form. With this form, you are asked to complete, for example,
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
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.
COS 125 DAY 20. Agenda Assignment 8 not corrected yet Assignment 9 posted  Due April 16 New course time line Discussion on Scripts 
HTML Links HTML uses a hyperlink to another document on the Web.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
Links and Images. Links HTML uses a hyperlink to link to another document on the Web A hyperlink can be either text or a picture Links are created with.
Lecture 8 Introduction to Web Programming. Announcement  First In-class exam will be on Oct. 10 (Wednesday)  2.50pm – 4.05pm  Exam will cover all materials.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
Lecture 6, MAT 279, Fall HTML Introduction (cont.) 9/17/2009.
Chapter 6 Frames and Image Maps Frame sets and frames Image Maps.
HTML Basics.
HTML basics
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Images in HTML PowerPoint How images are used in HTML
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Images, Links and Multimedia
Hosted by Coach Slanina
HTML Images CS 1150 Spring 2017.
Chapter 3 Images.
Graphics (Characteristics 1)
Basic HTML and Embed Codes
HTML Images CS 1150 Fall 2016.
Pertemuan 1b
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

Basic Webpage Design Mark-up html document with images

Objectives To know how to mark-up the images in html. To identify the diffirent attributes of tag. To know how to link the html pages using text and images. To identify the different attributes of achor ( ) tag.

HTML Images With HTML you can display images in a document.

HTML Images THE IMAGE TAG AND THE SRC ATTRIBUTE In HTML, images are defined with the tag. The tag is empty, which means that it contains attriburtes only and it has no closing tag. To display an image on a page, you need to use the src attribute. Src stands for “source”. The value of the src attribute is the URL of the image you want to display on your page.

HTML Images The syntax of defining an image: The URL points to the location where the image is stored. An image named "boat.gif" located in the directory "images" on "www. jppalma09.com" has the URL:

HTML Images The browser puts the image where the image tag occurs in the document. If you put an image tag between two paragraphs, the browser shows the first paragraph, then the image, and then the second paragraph. THE ALT ATTRIBUTE The alt attribute is used to define an "alternate text" for an image. The value of the alt attribute is an author-defined text:

HTML Images The "alt" attribute tells the reader what he or she is missing on a page if the browser can't load images. The browser will then display the alternate text instead of the image. It is a good practice to include the "alt" attribute for each image on a page, to improve the display and usefulness of your document for people who have text-only browsers.

HTML Images EXAMPLE 01. Insert images

HTML Images EXAMPLE 01. Insert images insert images An image:

HTML Images EXAMPLE 02. Insert images from another folder or another server

HTML Images Insert images from another folder or another server An image from another folder: <img src="../images/assets/feuea.jpg" width="100" height="100"> EXAMPLE 02. Insert images from another folder or another server

HTML Images EXAMPLE 03. Align an image within a text

HTML Images align an image with a text An image <img src ="feuea.jpg" align="bottom" width="50" height="50"> in the text An image <img src ="feuea.jpg" align="middle" width="50" height="50"> in the text An image <img src ="feuea.jpg" align="top" width="50" height="50"> EXAMPLE 02. Insert images from another folder or another server in the text Note that bottom alignment is the default alignment An image <img src ="feuea.jpg" width="50" height="50"> in the text <img src ="feuea.jpg" width="50" height="50"> An image before the text An image after the text <img src ="feuea.jpg" width="50" height="50">

HTML Images EXAMPLE 04. Let the image float to the left/right of a paragraph

HTML Images let the image float to the left/right of a paragraph <img src ="feuea.jpg" align="left" width="60" height="60"> A paragraph with an image. The align attribute of the image is set to "left". The image will float to the left of this text. A paragraph with an image. The align attribute of the image is set to "right". The image will float to the right of this text. EXAMPLE 02. Insert images from another folder or another server

HTML Images EXAMPLE 05.Adjust images to different sizes

HTML Images adjust images to different sizes <img src="feuea.jpg" width="20" height="20"> <img src="feuea.jpg" width="45" height="45"> EXAMPLE 02. Insert images from another folder or another server <img src="feuea.jpg" width="20%" height="20%"> You can make a picture larger or smaller changing the values in the "height" and "width" attributes of the img tag.

HTML Images EXAMPLE 06. Display an alternate text for an image (if the browser can’t load images)

HTML Images EXAMPLE 02. Insert images from another folder or another server display an alternate text for an image Text-only browsers will only display the text in the "alt" attribute, which is "Go Left". Note that if you hold the mouse pointer over the image it will display the text.

HTML Images EXAMPLE 07. Make a hyperlink of an image make a hyperlink of an image You can also use an image as a link:

Anchor Tag - Also called the anchor tag, identifies a link or a location within a document. You commonly use this tag to create a hyperlink, using the HREF=attribute. You can also use the tag to identify sections within a document, using the NAME=attribute. Ex: Visit RayComm

Anchor Tag - Attribute Information COORDS="x1, y1, x2, y2" Identifies the coordinates that define a clickable area. Measure coordinates, in pixels, from the top- left corner of the image.

Anchor Tag - Attribute Information HREF="URL" Specifies the relative or absolute location of a file to which you want to provide a hyperlink. More Info SHAPE="{RECT, CIRLCLE, POLY, DEFAULT}" Specifies the type of shape used to represent the clickable area. SHAPE=RECT indicates that the shape is rectangular. SHAPE=CIRCLE specifies that the shape is a circle. SHAPE=POLY indicates that the shape is a polygon represented by three or more points.

Anchor Tag - Attribute Information STYLE="..." Specifies style sheet commands that apply to the contents within the tags. Page 2 TABINDEX="n" Indicates where the element appears in the tabbing order of the document. Food

Anchor Tag - Attribute Information TARGET="..." Indicates the name of a specific frame into which you load the linked document. You establish frame names within the tag. The value of this attribute can be any single word. Go to Page 2 TITLE="..." Specifies text assigned to the tag that you can use for the context-sensitive help within the document. Browsers may use this to show tool tips over the hyperlink. Food Other Attributes This tag also accepts the TYPE, LANG, DIR, HREFLANG, onFocus, onBlur, onClick, onDblClick, onMouseDown, onMouseUp, onMouseOver, onMouseMove, onMouseOut, onKeyPress, onKeyDown, and onKeyUp attributes. See the Element-Independent Attributes section of this refrence for definitions and examples.

Summary Summary of the chapter or topic