Chapter 2 Designing Web Pages With HTML JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,

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 I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Internet Basics & Way Beyond!
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Web Development & Design Foundations with XHTML
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. The World Wide Web Protocols Addresses HTML.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Introduction to HTML Bent Thomsen Institut for Datalogi Aalborg Universitet.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Using HTML Tables.
Marking Up With Html: A Hypertext Markup Language Primer
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
ETT 429 Spring 2007 Web Design I.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
© 2005 ComputerPREP, Inc. All rights reserved. HTML 4.0 and Web Page Design Module I.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
A simple example An HTML file is a text (ASCII) file in a special format: Charles Ling's home page My first.
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.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
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.
1 Essential HTML coding By Fadi Safieddine (Week 2)
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
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) –
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS Dr. Zhizhang Shen Chapter 4: Talking.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Basic HTML. 2 Part 1: Basic Web Page Production.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
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.
C1999 Kathleen Schrock 1 Basic HTML By Kathy Schrock.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
Chapter 8 Introduction to HTML and Applets Fundamentals of Java.
Introduction to HTML. What is HTML?  Hyper Text Markup Language  A markup language designed for the creation of web pages and other information viewable.
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
Marking Up with XHTML Tags describe how a web page should look
<h1>Chapter 2</h1>
COMPUTING FUNDAMENTALS
Computers and Scientific Thinking David Reed, Creighton University
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Chapter 2 Designing Web Pages With HTML JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin, Gary Litvin, and Skylight Publishing. All rights reserved. TM

2-2 Objectives: l Understand how web pages are put together l Learn basic HTML tags and develop your own web pages l Learn how images and Java applets are added to web pages l Learn some of the Internet terminology

2-3 HTML — l HyperText l Markup l Language Text contains “hot links.” When touched or clicked, a link takes you to the specified place Formatting commands are embedded in the text as “tags” (e.g.,... makes it bold) A very limited “language,” just a few dozen tags

2-4 HTML from Source to Display... HTML WYSIWYG stands for What You See Is What You Get... Display (“what you get”): Source (e.g., Ch02.html ):

2-5 HTML Source is Device- and Platform-Independent. l But: –may be displayed differently according to the capabilities of a particular device (computer screen, printer), its size, resolution, colors, etc. –may be interpreted differently by different software (Netscape Navigator, Internet Explorer, etc.)

2-6 HTML Features l Tags for formatting and positioning text l Tags for lists, tables, embedded pictures, and Java applets l Tags for hyperlinks and “anchors”

2-7 HTML Syntax l Each tag is enclosed in angular brackets: l HTML is case-blind: doesn't distinguish between upper case and lower case. l Many tags require a matching closing tag: my text

2-8 HTML Syntax (cont’d) l Some tags may take attributes: l Certain characters (, &, ©, etc.) are represented by an “escape sequence.” <sometag attr="somevalue"> < < > > & & © ©

2-9 HTML Syntax (cont’d) l Tags can be nested: Red Sea Or: Click here for details.

2-10 HTML Document Structure Info about the document Info to be displayed Contact info for webmaster, etc.

2-11 Text Layout Heading Subheading Sub... subheading New paragraph Centered Text New line Indented text

2-12 Text Formatting Regular Bold Italic Underlined Emphasis Citation Typewriter font Big Regular Small below above Big & red

2-13 Anchors and Hyperlinks l An “anchor” defines a location in the current HTML document. An anchor uses an tag with a name attribute: Giant Pandas l An anchor can be placed anywhere in a document. An anchor named “panda”

2-14 Anchors and Hyperlinks (cont’d) l A hyperlink defines “hot text” and the destination (a URL) to go to when the link is clicked. A hyperlink uses the tag with an href attribute and a closing tag: When clicked, takes you to the anchor named “panda” Only 1630 Giant pandas are left in the world.

2-15 URLs l URL stands for “Uniform (or Universal) Resource Locator.” l A hyperlink can link to any URL. l A URL can point to an HTML file, a pdf file, an image, audio, or video file, and even to an address. l A URL can be absolute or relative.

2-16 Absolute URLs l An absolute URL defines the absolute location of a resource on the Internet. l Examples: ProtocolHost computer (web server) File name Protocol address

2-17 Relative URLs l A relative URL in a link describes a location relative to the location of the document that holds that link. l Examples: #panda volleyball.html athletics.html#swimteam images/lucie.jpg../courses/webdesign

2-18 URLs in Hyperlinks l Use relative URLs to link to resources on your own web site. l Use absolute URLs to link to resources on other web sites. Use relative URL Use absolute URL

2-19 Lists Bike Car Unicycle Bike Car Unicycle Car 4 wheels Bike 2 wheels Unicycle 1 wheel Car Bike Unicycle 1. Car 2. Bike 3. Unicycle Car 4 wheels Bike 2 wheels Unicycle 1 wheel

2-20 Images l.gif files GIF, Graphics Interchange Format l.jpg files JPEG, Joint Photographic Experts Group

2-21 l Other attributes (optional): alt="some text" align="top/center/bottom" border="thickness" (0 — no border) usemap="#mapname"

2-22 Images and Hyperlinks l To turn an image into a hot link, surround it with and tags. l To turn different sections of an image into different hot links, define a “map”: <area shape=" circle/rect/square " coords="..." href="URL">...

2-23 Tables l Tables can be used to: –Display data –Place text and an image side by side –Make narrow columns of text –Box text messages by adding border –Add color background to text boxes l Tables can be nested.

2-24 Tag l Optional attributes: border="thickness" (0 — no border) width="n% (or number of pixels)" cellpadding="number of pixels" (additional space between data and cell border) cellspacing="number of pixels" (additional space between cells)

2-25 Tag (cont’d) Optional caption Individual cell Header row (optional) Regular row

2-26 The Tag l The tag adds a Java applet to the web page. l An applet’s code consists of.class files and may also include images, audioclips, etc. l Only one class, the “main” class, is listed in the tag.

2-27 The Tag (cont’d) <applet code="ClassName" width=... height=... alt="some text" codebase="URL"> Your browser is ignoring the <applet> tag Optional parameters for the applet Optional attributes

2-28 Review: l What is a web page? Web site? Java applet? l What do HTML, WYSIWYG, HTTP stand for? l Define hypertext and HTML source. l Identify the file types by their extensions:.htm,.txt,.pdf,.jpg,.gif,.wav,.class

2-29 Review (cont’d): l Name some document structure tags. l Name some document layout tags. l Name some text formatting tags. l Name the tags for working with hyperlinks. l What types of lists are supported in HTML? What are their respective tags? l Name some tags for working with images, tables, and applets.