The W3C More on images Entity codes Remote vs Local Computers

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Eight Publishing on the Web.
Advertisements

XP Adding Hypertext Links to a Web Page. XP Objectives Create hypertext links between elements within a Web page Create hypertext links between Web pages.
1 * The World Wide Web * HTML Basics Internet 1: The World Wide Web.
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
Instructor: A. Burns 1 HTML Images. Instructor: A. Burns 2 Inserting a Graphic Images can be displayed in two ways: as inline images or as external images.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
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.
1st Project Introduction to HTML.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
The Internet & The World Wide Web Notes
Chapter ONE Introduction to HTML.
Creating a Web Page HTML, FrontPage, Word, Composer.
Intro to MIS – MGS351 Building a Webpage. Chapter Overview m The World Wide Web – Web servers, Web browsers and Web pages m HTML Introduction m Using.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
INTRODUCTION TO DREAMWEAVER 8. What we already know…  Design basics  Contrast  Repetition  Alignment  Repetition  HTML.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
Lecturer: Ghadah Aldehim
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
The Internet. An interconnected network of computers globally Computers are able to communicate and share information with one another from remote locations.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
Website Development & Management Creating Web Pages CIT Fall Instructor: John Seydel, Ph.D.
XHTML Louise Soe updated September 2009.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
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.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
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.
Using the Internet. (WWW) and the Internet The World Wide Web (WWW) is a small part of the Internet. The Internet relates to all the hardware and software.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
1 UNIT 13 The World Wide Web Lecturer: Kholood Baselm.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Review of HTML and CSS A (very) brief review of some key fundamentals to be aware of in IT-238.
Slide 1 Graphics (Characteristics 1) Images have various characteristics that affect performance Size (number of pixels) – Large images can be several.
Session 1: Introduction to HTML Fall Today’s Agenda Talk about the functions of the Internet Cover useful terminology for today’s session HTML,
1 UNIT 13 The World Wide Web. Introduction 2 Agenda The World Wide Web Search Engines Video Streaming 3.
1 UNIT 13 The World Wide Web. Introduction 2 The World Wide Web: ▫ Commonly referred to as WWW or the Web. ▫ Is a service on the Internet. It consists.
Tutorial 1 Getting Started with Adobe Dreamweaver CS5.
XP Creating Web Pages with Microsoft Office
HTML PROJECT #1 Project 1 Introduction to HTML. HTML Project 1: Introduction to HTML 2 Project Objectives 1.Describe the Internet and its associated key.
Intro to HTML – Part IV Organizing your page into sections using div Hyperlinking images Entity codes Remote vs Local Computers.
Lecture 16. A Very Brief Introduction to HTML and XHTML, part V Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
The World Wide Web.
4.01 How Web Pages Work.
* Web Servers/Clients * The HTTP Protocol
Introduction to HTML.
4.01 How Web Pages Work.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Validation.
Links and Comments in HTML5
Checkboxes, Select boxes, Radio buttons,
Introducing XHTML: Module A: Web Design Basics
Lecture: Protocols in Detail
Sec (4.3) The World Wide Web.
Project 1 Introduction to HTML.
USING DREAMWEAVER Contents: Assigning a Root Folder
Introducing the World Wide Web
Validation.
Graphics (Characteristics 1)
USING DREAMWEAVER MX 2004 Contents: Assigning a Root Folder
Exploring the Internet
Exploring the Internet
Document Structure & HTML
4.01 How Web Pages Work.
File Transfer Protocol
Intro to HTML – Part IV Organizing your page into sections using div
Checkboxes, Select boxes, Radio buttons
* Web Servers/Clients * The HTTP Protocol
Presentation transcript:

The W3C More on images Entity codes Remote vs Local Computers Intro to HTML – Part IV The W3C More on images Entity codes Remote vs Local Computers

Learning Objectives By the end of this lecture, you should be able to: Identify the organization responsible for creating the “rules” of the web Understand a little more about images Use entity codes to display non-standard characters Explain what is meant by ‘uploading your file to the server’ and the name of the protocol used to accomplish this task. Explain what is meant by a "local" vs. "remote" computer

The World Wide Web Consortium (W3C) The WWW Consortium (W3C) is the group that establishes the “rules” of HTML and related standards. It is a collection of organizations and experienced individuals tasked with agreeing upon and documenting the standards for use with the world wide web. Long, long ago (i.e. the 90s and 00s!) there were numerous issues involving inconsistency in how different browsers displayed the same HTML code. In addition, many browsers implemented their own "specialized" tags and functionality. This quickly became a nightmare, and was one of the reasons that the W3C has taken a major role in HTML and related web standards. As an example, if a new tag or attribute is to be approved (or an old one to be deprecated), it is the W3C that will investigate and discuss the reasons for doing so.

Reminder: “URL” = Web Address URL: Uniform Resource Locator. It is an address that specifies the location of a file on the Internet. That is if someone says to you: “What is the URL of that page?”, they are asking you for the web address. E.g. http://www.nytimes.com

Images: Bandwidth limitations Image files consume more bandwidth than text files since they are usually considerably larger. Users who access the Internet via slower connections will have to wait (sometimes for quite a while). Therefore, for purposes of usability, try to avoid/minimize use of large images.

Images: Using thumbnails If you do want to make very large images available, one option is to use thumbnails, which are reduced versions of your images. Those thumbnails can then be hyperlinked to the larger versions. <a href="high_resolution_photo.jpg"> <img src="low_resolution_photo.jpg"> </a> * Note: To save space, I've left out the alt attribute from this example. In this example, the photo called: low_resolution_photo.jpg is initially displayed However, it is hyperlinked to the image high_resolution_photo.jpg. If the user clicks on the initial image, the larger one will then display. Several freeware and shareware graphic programs can create thumbnails Guess What: This particular example is not meant to teach you about the use of thumbnails! Rather, it is about "usability". Always bear in mind that there are many, many users out there using different devices, different browsers, and at different bandwidths. This fact must always be kept in mind by web developers.

Images: Rescaling images It is possible to rescale an image by changing its WIDTH and HEIGHT attributes: <img src="mozart.jpg" height="100" width="100" alt="Picture of Mozart" > Important: If you wish to rescale an image, be sure to preserve the aspect ratio (height-to-width ratio) otherwise the image gets distorted. Divide or multiple the dimensions by the same factor. In the example above, the original image of Mozart was 300x300 pixels. So in this example, while we have reduced the display on the screen to 1/3 its original size, we have also preserved the original dimensions. Important: Scaling down an image DOES NOT reduce its file size (bandwidth requirements). To reduce the file size, you need to compress the image. This should really be done using CSS!!!

Special Characters aka “Entities” Suppose you wanted to insert the copyright symbol – how would you do it? Suppose you wanted display the < symbol on a web page – how would you do it? Recall that this symbol will make some browsers think you are about to create a tag. Answer: There are special codes we can use to display special characters. I.e. Characters that are either not available on conventional keyboards, or are reserved because they are used as HTML syntax. HTML provides us with special codes to display such characters. Look up “HTML Entities” in an HTML reference to find a detailed list. A few examples are provided on the next slide.

A Few Entity Codes     non-breaking space < < > Code name Code Symbol     non-breaking space < < > > & & & © © © ® ® ® @ @ For some entities, in addition to the numeric entity codes, the W3C has given us “friendlier” versions that can also be used. Chicago Cubs© Chicago Cubs©

The Chicago Cubs<sup>©</sup> Using an entity code to display a symbol: The Chicago Cubs<sup>©</sup> (Can you guess the purpose of the <sup> tag?)

Practice Time Practice the following until you get to the point where you can type the HTML code from memory: Inserting images Creating hyperlinks Hyperlinking images Your goal is to be able to create the following page without referring to your notes: Download an image from the web on a favorite musician, sports team, hobby, etc. Then create a very short HTML document in which you talk about it. (For practice purposes, just make it just a single sentence or so). Have the image link to the Wikipedia web page about the topic. NOTE: This exercise is absolutely NOT about memory per se! Rather, by typing things out by memory, it will mean that you are getting many of these details under your "mental fingertips". Believe me – it helps. A lot.

New Step: Upload your file(s) to the server The next step in creating web pages, contd: Secure File Transfer Protocol (SFTP) Type up the HTML document text file (i.e. do not write in Word) View on a browser on your local machine (File  Open) However, the document is not yet available to the world. It currently exists only on the "local" computer – i.e. the computer in front of you. In order to make this document available on the web, it must be uploaded to a web server. New Step: Upload your file(s) to the server There is a protocol used to copy the file(s) from the local computer (i.e. the computer in front of you) to another computer (e.g. a web server) located elsewhere on the internet, the "remote computer". This protocol is called “Secure File Transfer Protocol” or “SFTP”. Often, for short, we simply say: “FTP”. You will sometimes hear people say “SSH” which is a similar protocol used to accomplish the same task. Don't forget that in addition to the HTML documents that you create, you must also upload any additional files you wish to make available on the web. For example, if your page has images, you must also upload those images to the web server.

Review of the process Create your HTML document and test/edit/modify as needed on the computer in front of you. We typically refer to the computer in front of you as the “local” computer. Click on File  Open and navigate to your file. Or, simply type the name of the file in the URL box. Once you are happy with the version on your computer and are ready to make go live on the web, you must upload it to the server using a protocol such as SFTP. We typically refer to the computer you are moving your file(s) to as the “remote” computer. We will discuss how to do this in an upcoming lecture.