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.

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

HTML Basics Customizing your site using the basics of HTML.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
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
Start -> All Programs -> Classes -> Web Expressions -> Dreamweaver.
ETT 429 Spring 2007 Web Design I.
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.
Web Design HTML, Frontpage, DreamWeaver μέρος β ΠΡΥ019 - Πληροφορική Δρ.Βάσος Βασιλείου.
HTML Links and Anchors.
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
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.
Web Technologies Website Development Trade & Industrial Education
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.
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.
1 Essential HTML coding By Fadi Safieddine (Week 2)
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Images, Hyperlinks, and Sound Module 2: XHTML Basics LESSON 3.
HTML Overview Part 4 – Tables 1. HTML Tables  Tables are defined with the tag pair.  A table is divided into rows with tag pairs. o tr stands for "table.
Understanding HTML Code
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.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Linking web pages Wah Yan College (Hong Kong) Mr. Li C.P.
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.
Enhancing Your Web Site—Adding Links Web Page **YOU MUST HAVE COMPLETED THE 1ST 3 WEB PAGES BEFORE YOU CAN DO THIS ONE. **YOU SHOULD HAVE COMPLETED THE.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
Week 1 – Beginners Content McAfee & Big Fish Games CoderDojo.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
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”
Creating Links. The Anchor Element: The anchor tag can be used in three different ways: 1.External link – to link to a web page outside your own website.
1 Review of HTML Elements. 2 The tag These tags are marked as comments in HTML. Any text between these two comment tags will.
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.
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.
Basic Webpage Design Mark-up html document with images.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Links in HTML What you need to know….. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another.
HTML Links HTML uses a hyperlink to another document on the Web.
Images. Intro What is it? Getting your image Inserting Moving Resizing Cropping.
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 Creating the Home Page. 2 Creating a Table Table attributes  Two rows and two columns  No border  Left-aligned Change the vertical alignment of the.
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
REEM ALMOTIRI Information Technology Department Majmaah University.
Hyperlink ● Anchor tag and its attributes ● Four Types of URL ─ ─ Absolute addressing ─ Relative addressing ─ Intrapage ● Attributes -- link, vlink,
Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.
HTML Lab4 Ins.Samia alblwi. O UTLINE : 1-Links 2-Frame.
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
Making the website. Get your folders sorted first Create a new folder in “N” called “My hockey website” Create folders inside called “Documents”, “images”
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Images in HTML PowerPoint How images are used in HTML
HTML GUIDE Press F5 and then
Hosted by Coach Slanina
Enhance your website.
Basic HTML and Embed Codes
If You Know Nothing About HTML, This is Where You Start.
IDT Links in HTML What you need to know….
Hyper text markup Language
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

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 the anchor tag –( ) –href is the attribute used to put in the address of the document or web site being linked to A simple anchor tag looks like this: – My Favorite Page The ‘a’ in the tag tells the browser the tag is an anchor tag. The href stands for hyper reference The text between the and tags appears in the browser and when clicked on, will link to the website or page that is part of href

Create this page Copy “lastpage.html from the student server and paste it into your folder in thawspace. You will need it for this document Open the html Template and create this document This text is a link to a page on this Web site. This text is a link to a page on the World Wide Web. Save as “links.html” The first link is to a page on the same site as the this page. The second link is to

Other Anchor Attributes With the target attribute, you can define where the linked document will be opened. The line below will open the document in a new browser window: – Microsoft Open the Links file and insert the target attribute into each anchor tag

The Anchor Tag and the Name Attribute The name attribute is used to create a named anchor. –Links that can jump directly into a specific section on a page that is named as follows Text to be displayed –You have to have an anchor with a name attribute at the location where you want to go on the page –In your anchor with the href, you need to give the name of the anchor that you want to go to. Examples: (name) Useful Tips Section Jump to the Useful Tips Section (link directly to name from another page) Jump to the Useful Tips Section (link to name from within the same page) Notice # sign

You Try Copy & paste Chapters.html into your folder in thawspace Create a name anchor for chapters 4, 8, 12, 16 –Example Chapter 4 At the top of the page, create a table of contents that will let you jump to each of those chapters –Example See Chapter 4 (do this for each of the chapters

Link Open up your links.html file and add an link – Add the link again, this time including a command to add a subject to the –

Change color of links Goes in body tag –link=“green” –vlink=“red” (vlink = visited link) Change the color of the link and visited link in the links.html page Add a new link to Disney: Disney

Images All information for images is contained inside the tag –There is no closing tag Attributes of tag –src: source of the image (address) example: –Height=“number of pixels” example height=“200” –Width=“number of pixels” –Align=“right”

Images Alt attribute used to define an "alternate text" for an image Example: Alt=“description of picture” –tells the reader what he or she is missing on a page if the browser can't load images –Also, if hearing impaired, alt is read out loud by software

You Try Copy the images folder from the student file to your folder in thawspace Create an html file (use template) Save as smile.html

You try part 2 Key in: This should make you smile When you have images in a folder, you need to key in the path to your file Change the width of the then to 200 (refresh your page after each change) Change alt to, “A smile starts at the lips and spreads to the eyes.” Change the alignment of the image to right

You Try Part 3 Make the following changes: –Change the width to 300 –Change the alignment to center You can make an image be a link. Add the following link to the picture

Image for the background An attribute inside of the body tag: –Background=“imagename.jpg” Try it on your smile.html file Add bg1.jpg as the background image (in body tag)