Reading Assignment - HTML 2 4 General Structure of HTML 4 headings, setting style 4 Text, paragraphs, and lists 4 Anchors, Names and Links 4 Images 4 Tables.

Slides:



Advertisements
Similar presentations
Tables Tables provide a means of organising the layout of data
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Frames.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
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 popo.
Multimedia and the World Wide Web HCI 201 Lecture Notes #5A.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Tutorial 4: Designing a Web Page with Tables
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
Frames 1 Lecture HTML: Frames and Miscellaneous Tags.
© 2004, Robert K. Moniot Chapters 4 & 5 Introduction to HTML, More Details.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
Computing Concepts Advanced HTML: Tables and Forms.
HTML Text Tables 1 Lecture HTML: Text and Tables.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Using HTML Tables.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
The Power of Tables They aren't just for sitting stuff on anymore...
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Chapter 6 Working with Frames.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
Using Frames in a Web Site
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
XHTML1 Topics Work with the Frameset Document Type Definition (DTD) Create frames Use the target and base attributes Create nested frames Format frames.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
CS105 Introduction to Computer Concepts HTML
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
XP Using Frames in a Web Site Ali Alfayly. XP Tutorial Objectives Create frames for a Web site Control the appearance and placement of frames Control.
Web Technologies Website Development Trade & Industrial Education
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Website Development with Dreamweaver
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Frame Page A Frame Page does the following: –Defines the size of each frame. –Defines how the window will be broken up – rows or columns. –Specifies which.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 7: Working with Frames Kelly L.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
CSCE 102 – Chapter 6 (Web Design and Layout) CSCE General Applications Programming Benito Mendoza Benito Mendoza 1 By Benito Mendoza.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
Chapter 5: Windows and Frames
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
FRAMES. Frames allow you to divide the page into several rectangular areas and to display a separate document in each rectangle. Each of those rectangles.
1 HTML Frames
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
Week 9: HTML Tables and Frames HNDIT11062 – Web Development.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
1 HTML Frames
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
XHTML Introductory1 Frames Chapter 5. XHTML Introductory2 Objectives In this chapter, you will: Work with the Frameset Document Type Definition (DTD)
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
Programming the Web using XHTML and JavaScript
Using HTML Tables SWBAT: - create tables using HTML
Presentation transcript:

Reading Assignment - HTML 2 4 General Structure of HTML 4 headings, setting style 4 Text, paragraphs, and lists 4 Anchors, Names and Links 4 Images 4 Tables 4 frames and miscellaneous 4 NOTE: Some of slides are extracted from the course notes of USC CS571 and Deitel & Associates. These documents are copyrighted according to: either "Copyright © Ellis Horowits or PrenticeHall. All Rights Reserved.

Structured Text The nine planets of the solar system are mercury, venus, earth, mars, jupiter, saturn, uranus, neptune and pluto. Galileo discovered moons of jupiter and saturn. As Galileo once said, The milky way is not a gas, but a mass of stars so numerous as to be beyond belief. For more information examine [World Book Encyc 99]. To order this book, please refer to the following reference number: ISBN

Browser Output

Phrase Elements 4 Phrase elements let the browser determine the presentation style 4 EM: Indicates emphasis. 4 STRONG: Indicates stronger emphasis. 4 CITE: Contains a citation or a reference to other sources. 4 DFN: Indicates that this is the defining instance of the enclosed term. 4 CODE: Designates a fragment of computer code. 4 SAMP: Designates sample output from programs, scripts, etc. 4 KBD: Indicates text to be entered by the user. 4 VAR: Indicates an instance of a variable or program argument. 4 ABBR: Indicates an abbreviated form (e.g., WWW, HTTP, URI, Mass., etc.).

Paragraphs 4 The paragraph indicator –Usually attached at the end of the paragraph –Causes a new line and whitespace to be generated 4 Pairs of paragraph indicators can also be used: This is the start of a paragraph containing a single sentence that makes use of three lines. 4 there is an alignment attribute, but setting alignment via the style attribute is preferred

Example - Paragraph and Alignment Example of Paragraph tag Callisto is the outermost of Jupiter’s four planet-sized moons and is dominated by impact craters. Despite this, a few more interesting features are also visible. Among the most interesting features on Callisto are impact scars from tidally disrupted comets. Callisto is nearly as large as the planet Mercury. This indicates that the interior is approximately half water ice as well.

Browser Output - Paragraph Alignment

Example of Pre-formatted Text Worstsort program Worstsort program void worstsort (element list[], int n) /* this may be the shortest sorting algorithm to write, but it is not very efficient*/ { int i; element temp; 100: for (i=0, i < n-1; i++) if (list[i] > list[i+1]) { temp=list{i}; list[i]=list[i+1]; list[i+1]=temp; go to 100; }

Browser Output of Preformatted Text

Lists 4 There are five kinds of lists: definition, directory, menu, ordered, and unordered 4 All lists follow the same pattern: – 4 directory and menu lists are deprecated

Definition Lists light year the distance light travels in one year asteroids are small, irregular shaped objects, mostly occurring between Mars and Jupiter

Example - Unordered Lists Example of Unordered Lists planets and moons Mars deimos orbit: 23,459 km from Mars diameter: 12.6 km mass: 1.8e15 kg phobos Jupiter callisto europa ganymede io

Browser Output of Unordered Lists

Ordered Lists 4 Has the general form first list item second list item 4 START attribute can initialize the sequence to a number other than 1 4 TYPE attribute can be used to select the numbering style TypeName Style 1arabic 1, 2, 3,... alower alpha a, b, c,... Aupper alpha A, B, C,... ilower roman i, ii, iii Iupper roman I, II, III, 4 Alternately one can use the tag OL.withroman {list-style-type: lower-roman}

Example - Ordered Lists Example of Ordered Lists Planets and Moons as Ordered Lists Mars deimos orbit: 23,459 km from Mars diameter: 12.6 km mass: 1.8e15 kg phobos Jupiter callisto europa ganymede io

Browser Output

Table Elements 4, a tag used to define a table 4, a tag to label a table –Its attributes are ALIGN = top, bottom, left, right 4 or, tags that identify a table header cell and table data cell –Headers are the same as data except they use bold font and are centered 4, a tag that identifies a container for a row of table cells –Same attributes as TH and TD

Facts about Tables 4 Table data can be text, lists, images, forms, figures, or even tables 4 Table headers are typically rendered in boldface, and table data is typically rendered in the regular font and point size 4 A table has an optional caption followed by rows 4 Table rows are said to contain table headers and table data 4 The browser will set the number of columns to be the greatest number of columns in all of the rows 4 Blank cells are used to fill extra columns in the rows

Example - 3 rows x 2 cols Table: 3 rows 2 Cols Table: 3 Rows 2 Cols MIME Content-Types application/postscript Postscript application/rtf MS Rich Text Format application/x-pdf Adobe Acrobat Format

Browser Output

Table Example Rowspan colspan Table: Rowspan and Colspan Table: RowSpan and ColSpan MIME Content-Types Items Types and Their Meaning application/postscript Postscript application/rtf MS Rich Text Format application/x-pdf Adobe Acrobat Format

Browser Output

Example - Cell Alignment Table: Aligning Cell Data Table: Aligning Cell Data MIME Content-Types Items Types and Their Meaning application/postscript Postscript application/rtf MS Rich Text Format application/x-pdf Adobe Acrobat Format

Browser Output - Cell Alignment

Example cell padding and spacing Table: Cell Padding and Spacing Table: Cell Padding and Spacing MIME Content-Types Items Types and Their Meaning application/postscript Postscript application/rtf MS Rich Text Format application/x-pdf Adobe Acrobat Format

Browser Output- cell padding and spacing

Table Example: Surprise Quiz Table: Pop Quiz Draw the table described here Datal Data2 Data3 Data4 Data5 Draw the table described here Average Cost Time Projects P P

Frames 4 Frames permit you to divide the viewing area into a number of independent areas, each of which can contain its own HTML document 4 Frames can be resized 4 The tag describes the rows or columns; the tag describes the contents of the frame 4 A multiframe document typically does not have a layout; is not recognized if placed after a tag 4 Frame is a very useful tool to organize the contents of HTML (Similar effect of using menu)

Examples of Frames

Targets of Frames 4 To create targeted links, give frames a name using the NAME attribute of the tag 4 An anchor that displays a new page in a frame might appear as Load Second menu 4 The TARGET attribute has several special values –_SELF: loads file into current frame –_PARENT: loads file into enclosing frame of current frame –_TOP: loads file into current window –_BLANK: opens a new window and loads the file

Accommodating Frameless Browsers 4 tag –Goes inside the tag –Contains a frameless HTML –Its use is optional, but recommended 4 Example Welcome to my Home Page... more HTML here

Generic Frames Page

Contents of the Frames 4 Content.html Introduction The World Wide Web was originally conceived by Tim Berners-Lee while he was working at CERN. 4 Title.html Programming the World Wide Web 4 menu.html Chapter 1 Chapter 2 Chapter 3 4 copyright.html copyright 1999, All Rights Reserved

Appearance of Generic Frames Page

Attributes of Tag 4 name =... assigns a name to the current frame. This name may be used as the target of subsequent links. 4 src = uri specifies the location of the initial contents to be contained in the frame. 4 Noresize, When present, this boolean attribute tells the browser that the frame window must not be resizeable. 4 scrolling = auto|yes|no –auto: browser should provide scroll bars when necessary. This is the default value. –yes: browser should provide scroll bars for the frame window. –no: browsers should not provide scrolling for the frame window.

Attributes of Tag (cont’d) 4 frameborder = 1|0 –1: tells the browser to draw a separator between this frame and every adjoining frame. This is the default value. –0: tells the browser not to draw a separator between this frame and every adjoining frame. Note that separators may be drawn next to this frame nonetheless if specified by other frames. 4 marginwidth = pixels, specifies the amount of space to be left between the frame's contents in its left and right margins. The value must be greater than one pixel. The default value depends on the browser. 4 marginheight = pixels, specifies the amount of space to be left between the frame's contents in its top and bottom margins. The value must be greater than one pixel. The default value depends on the user agent.

Tag 4 Allows you to insert Name/Value pairs describing document properties, e.g. 4 USC CS dept home page header

Tag 4 Moving a Web page to a new site This site has moved This site has moved to a new location which is: Your browser should automatically move to the correct URL in five seconds.

Tag 4 This element is supported by all Java-enabled browsers 4 allows designers to embed a Java applet in an HTML document 4 It has been deprecated in favor of the OBJECT element 4 There are many pre-defined Java applets that can be used, e.g. An example of Java applets

Tag Browser Output

Objects 4 The tag is a generalization of the IMG and APPLET tags 4 Inserting an image Below is a photo showing what I looked like as a baby 4 Inserting a Java applet

Updating Text Example: DHTML INPUT Text Updating Using DHTML Entry Box What you type in below will replace this HTML <input type=button value="Click me to change" onclick="ReplaceMe.innerHTML = T1.value"> Type anything in the box and click the button to replace the text with what you have typed. Dynamic HTML replaces text with user-defined content, without a server round trip or reloading the page.

Updating Text Example: Browser Output dhtml3.html