HTML Chapter 4 Source: CSE 190 M (Web Programming) lecture notes, es/slides/lecture02-basic_xhtml.html.

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

Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
HTML popo.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
How Tags are used to form your Web Page
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
Creating Web Pages Getting Started. Overview What Web Pages Are How Web Pages are Formatted Putting Graphics on Web Pages How Web Pages are Linked Linking.
Marking Up With Html: A Hypertext Markup Language Primer
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
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.
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.
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)
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Images Inserting an image on a web page. chcslonline.org2 ITEMS REQUIRED Go to the course download page on the course website and download the 3 images.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS Dr. Zhizhang Shen Chapter 4: Talking.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
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.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML and XML Behind Web Authoring Tools. 2 Objectives Introduce HTML Learn HTML Step by step Introduce XML.
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.
HTML: Hyptertext Markup Language Doman’s Sections.
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.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer block.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
HTML Basic. 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.
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 Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introduction to Web & HTML
HyperText Markup Language. Web Hosting Creating a web site (on a site like iPage) –Buy domain name ( –iPage has registrar (e.g., FastDomain.
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
CIS 228 The Internet Day 2, 9/1/11 Hypertext. The Course Instructor: Bowen Alpern Office hour: GI 137-I, 4-5pm Tu.
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
Aside on Conversions  . Aside on Conversions  
Chapter 4 - Introduction to XHTML: Part 1
WEBSITE DESIGN Chp 1
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to HTML- Basics
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Chapter 4: Marking Up With HTML: A Hypertext Markup Language Primer
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Hyperlinks, Images, Comments, and More…
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML Chapter 4 Source: CSE 190 M (Web Programming) lecture notes, es/slides/lecture02-basic_xhtml.html es/slides/lecture02-basic_xhtml.html

2 HTML Stands for "HyperText Markup Language" Describes the content and structure of information on a web page  Not the same as the presentation (appearance on screen)

3 Tags HTML surrounds text content with opening and closing tags Can specify additional properties via attributes (more on this later)

4 Basic HTML Template page title goes here page content goes here

5 Headings:,, … Six levels of headings to separate page into different sections:,, …, Example: 4 Marking Up with HTML 4.2 Structuring Documents Headings in HTML

6 Paragraph: Start a new paragraph of text Example: We have designed our civilization based on science and technology and at the same time arranged things so that almost no one understands anything at all about science and technology. This is a clear prescription for disaster.

7 Whitespace Most whitespace (e.g., spaces, newlines, tabs) is insignificant Browser turns sequence of whitespace characters into a single space before processing HTML Example: I drink your MILKSHAKE! I DRINK IT UP!

8 Unnumbered List: and surround the items of a list, each of which is enclosed by list item tags, and Example: Things to do today: Run a marathon Climb Mt. Everest Save the world

9 Ordered List: Ordered lists are just like unnumbered lists, replacing the bullets with numbers Example: Things to do today: Run a marathon Climb Mt. Everest Save the world

10 Horizontal Rule: Horizontal line to visually separate sections of a page Example: Use Them Sparingly

11 Line Break: Forces a line break Example: Notice that even though "Two" and "fish" are on separate lines in HTML, they are on the same line in the displayed web page. Why? One fish, Two fish, Red fish, Blue fish

12 Phrase Elements:, Emphasized text (usually italicized): Strongly emphasized text (usually bold): Example: HTML is really, REALLY fun!

13 Link: Link, or "anchor", to another page Requires a hyperlink reference (use href attribute) to specify the destination URL Example: What would you do for a Klondike Bar ?

14 Pathnames absolute path: complete URL or a path starting from the root directory Link references need not be complete URLs.  Can be relative to the directory containing the file that has the reference. relative path: path that is relative to some directory

15 Relative Path From A To B Figure out how to get to the directory containing B from the directory containing A. To go down a level, refer to the subdirectory's name. To go up a level, refer to the parent directory as two dots (.. ).* Use slashes after each directory listed. *One dot (. ) refers to the current directory.

16 Example Referencing magritte.html from russell.html : Check out the biography of Rene Magritte. parent directory of sci

17 Use Relative Paths Where Possible Relative paths make it easy to move whole websites. For example, if my website moved from foo.com to bar.com, then the following would cease to work:* The right way: *This example assumes the page containing the link is in the web site's root directory. Next page

18 Image: Inserts a graphical image Requires the src attribute to specify the location of the image file Example:

19 Image File Formats Most common image file formats* for web pages .gif Graphics Interchange Format Pronunciation: jif (like the peanut butter) .jpg,.jpeg Joint Photographic Experts Group is the name of the committee that created the standard Pronunciation: JAY-peg .png Portable Network Graphics Pronunciation: ping *Image file formats differ on how they store an image (pixels vs. lines) and how they compress the image (lossy vs. lossless). For more information, see

20 Exercise: What Is Displayed? … is displayed in Internet Explorer as: Solve for x and y where 2x? Show work. What happened?  IE interpreted as a tag Solve for x and y where 2 x? Show work. Solve for x and y where 2<x<8 and 0<y (i.e. y is a positive number) and x*y=42. Is y>x? Show work.

21 Malformed HTML … is displayed in Internet Explorer as: Solve for x and y where 2x? Show work. … is displayed in Firefox as: Solve for x and y where 2<8 and 0x? Show work. Why don't they display the same thing?  Browsers handle malformed HTML in their own way. Solve for x and y where 2<x<8 and 0<y (i.e. y is a positive number) and x*y=42. Is y>x? Show work.

22 Malformed HTML How do we print what we originally intended?  escape sequence: a sequence of characters (prefixed by a special symbol, the escape character) that takes on an alternative interpretation (i.e., escapes normal interpretation)  In HTML, the escape character is the ampersand ( & ). Each escape sequence is terminated by a semi-colon ( ; ).  Example: < displays as < & displays as & Solve for x and y where 2<x<8 and 0<y (i.e. y is a positive number) and x*y=42. Is y>x? Show work.

23 Escape Sequence

24 Escape Sequence List of escape sequences  Solve for x and y where 2<x<8 and 0<y (i.e. y is a positive number) and x*y=42. Is y>x? Show work.