© 2007 Lawrenceville Press Slide 1 Chapter 2 HTML An example HTML document Hello world!

Slides:



Advertisements
Similar presentations
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.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Working with Web Tables
Designing Websites Using HTML and FrontPage A Typical Webpage View Source A webpage is a text file containing instructions to tell a computer how the.
HTML. The World Wide Web Protocols Addresses HTML.
1 Lesson 5 Introduction to Cascading Style Sheets HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
©2004 Brooks/Cole Applets Graphics & GUIs. Figures ©2004 Brooks/Cole CS 119: Intro to JavaFall 2005 Graphical Programs Most applications these days are.
B118 Web Programming Session #3 Introduction to XHTML February 16, 2004.
Computing Concepts Advanced HTML: Tables and Forms.
Applets, Graphical User Interfaces, and Threads / Chapter 9 1 Applets, Graphical User Interfaces, and Threads.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
A Simple Applet. Applets and applications An applet is a Java program that runs on a web page –Applets can be run from: Internet Explorer Netscape Navigator.
A Simple Applet.
Database-Driven Web Sites, Second Edition1 Chapter 2 INTRODUCTION TO HTML.
Program Design With Methods And Graphics / Chapter 4 1 Abstract Window Toolkit.
Notes Ch. 12—Creating Tables Web Page Design. Why Use Tables? Tables are used to create a variety of items such as calendars, charts, and spreadsheets.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Java Programming, 2E Introductory Concepts and Techniques Chapter 2 Creating a Java Application and Applet.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Chapter 3 Dreamweaver: Part I The Web Warrior Guide to Web Design Technologies.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Java Applets What is an Applet? How do you create.
JAVA APPLETS By: Ms. Humaira Siddiqui. Java and the Internet Java is considered to be a language well suited to be used in the internet. In contrast with.
Using FrontPage Express. Slide 1 Standard toolbars and menus Time indicator: gives an approximation of download time of the page.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
Website Development with Dreamweaver
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
Internet Software Development Applets Paul J Krause.
Java On The Web Session 15. Memory Upload JAVA Applets Colors Fonts Drawing Methods Posting your Applet.
Java Programming: From Problem Analysis to Program Design, 4e Chapter 12 Advanced GUIs and Graphics.
Applets.
JAPPLET.
1 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Introduction to HTML 1 Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan.
Abstract Window Toolkit (AWT) The Abstract Window Toolkit (AWT) supports Graphical User Interface (GUI) programming. AWT features include:  A rich set.
Applets Applet is java program that can be embedded into HTML pages. Java applets runs on the java enabled web browsers such as mozilla and internet explorer.
Table Row Table Data ( Header & Data) Data Cell Padding TABLE.
HTML: Tables & Frames Internet Technology.
1 CSC Computer Education (P) Ltd. DESIGNED BY K PRAKASH,
Lec.10 + (Chapter 8 & 9) GUI Java Applet Jiang (Jen) ZHENG July 6 th, 2005.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
LECTURE 18 Java and Web Pages. Java Savvy Browser A browser capable of handling java applets: - Netscape Navigator - Microsoft Internet Explorer - Sun.
APPLET. 2 Introduction to Java Applet Programs Applications are stand alone programs ◦ executed with Java interpreter Applet is a small program ◦ can.
1 Review of HTML Elements. 2 The tag These tags are marked as comments in HTML. Any text between these two comment tags will.
Drawing rectangles and ovals in the Applet window Displaying Text in the Java Console Window Demo of the HelloAgain program Arithmetic expressions Examples.
Who Wants to be a Millionaire? LIFELINES 1.50/50 2.Poll the audience 3.Ask Another Student.
Intro to Applets. Applet Applets run within the Web browser environment Applets bring dynamic interaction and live animation to an otherwise static HTML.
Introduction to Computers 12/6/ BEGINNING HTML DESIGNING YOUR OWN WWW PAGES.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
1 A Simple Applet. 2 Applets and applications An applet is a Java program that runs on a web page Applets can be run within any modern browser To run.
CSI 3125, Preliminaries, page 1 Applet. CSI 3125, Preliminaries, page 2 Graphics Methods public abstract void drawString(String str, int x, int y): is.
Creating a Java Application and Applet
CSI 3125, Preliminaries, page 1 Applet. CSI 3125, Preliminaries, page 2 Applet An applet is a Java program that runs in a Web browser. An applet can be.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Web Basics: HTML/CSS/JavaScript What are they?
Applets In Java Visit for more Learning Resources 1.
Practice: first_document.html
Pertemuan 1b
Introduction to HTML.
Applet in Java.
Outline Character Strings Variables and Assignment
Presentation transcript:

© 2007 Lawrenceville Press Slide 1 Chapter 2 HTML An example HTML document Hello world!

© 2007 Lawrenceville Press Slide 2 Chapter 2 HTML Document Structure

© 2007 Lawrenceville Press Slide 3 Chapter 2 Poorly Structured HTML Document An example HTML document Hello world!

© 2007 Lawrenceville Press Slide 4 Chapter 2 HTML Document with JavaScript JavaScript Greeting //Display a greeting alert("Hello World!");

© 2007 Lawrenceville Press Slide 5 Chapter 2 HTML Document with JavaScript Prompt JavaScript User Name //initialize a variable with a null value var name = null; // Ask user for their name name = prompt("Please enter your first name", " "); //Greet the user alert("Welcome " + name);

© 2007 Lawrenceville Press Slide 6 Chapter 2 A Java Applet import java.awt.*; import java.applet.*; public class Example_Applet extends Applet { String message; public void init() { message="My first Java applet"; } public void paint(Graphics g) { g.setColor(Color.blue); g.drawString(message, 50, 60 ); }

© 2007 Lawrenceville Press Slide 7 The HTML applet Tag The Einstein Applet

© 2007 Lawrenceville Press Slide 8 Drawing a Line X Y page.drawLine (10, 20, 150, 45); page.drawLine (150, 45, 10, 20); or

© 2007 Lawrenceville Press Slide 9 Drawing a Rectangle X Y page.drawRect (50, 20, 100, 40);

© 2007 Lawrenceville Press Slide 10 Drawing an Oval X Y page.drawOval (175, 20, 50, 80); bounding rectangle

© 2007 Lawrenceville Press Slide 11 import java.awt.*; import java.applet.*; public class Shapes_Color extends Applet { public void paint(Graphics g) { setBackground (Color.darkGray); g.setColor(Color.pink); g.drawRect(50, 50, 40, 40); g.setColor(Color.blue); g.fillRect(100, 100, 150, 150); g.setColor(Color.green); g.drawLine(20, 20, 300, 20); g.setColor(Color.red); g.fillOval(250, 250, 50, 50); g.drawArc( 10,10, 50, 30,20,110); g.drawArc( 10,10, 50, 30,20,110);}}

© 2007 Lawrenceville Press Slide 12 Chapter 2 HTML Tags  Heading Tags:  Horizontal Rule Tag: can include size and align attributes  Paragraph Tag:  Comment Tag:  List Tags: bulleted list numbered list item in the list

© 2007 Lawrenceville Press Slide 13 Chapter 2 Hyperlinks, Tables, and Images  Hyperlink Tag:  Table Tags: table table header table row table data cell The tag can include border, cellpadding, and width attributes  Image Tag: can include border, alt, height, and and width attributes

© 2007 Lawrenceville Press Slide 14 Chapter 2 Style Sheets  Used to define the type, paragraph, and page formats for an HTML document. Gives HTML documents a consistent appearance because they override the browser settings.  Style sheets can include rules and classes, a linked style sheet can include only rules.  Embedded style sheet defined with tag:  Linked style sheet is a separate file with a.css extension applied with the tag: