Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS1100.01 Dr. Zhizhang Shen Chapter 4: Talking.

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
13 February Building a Web Page. HTML Files Two types of information Text Instructions on how to display Instructions are in the form of tags Tags are.
Chapter 4_2 Marking Up With Html: A Hypertext Markup Language Primer.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Marking Up With Html: A Hypertext Markup Language Primer
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.
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
HTML Introduction DSC340 Mike Pangburn. What is HTML?  HTML: Hyper Text Markup Language  The predominant markup language for web-page design.  A markup.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Chapter 6 Marking Up With (X)HTML: A Hypertext Markup Language Primer
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.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley A Hypertext Markup Language Primer Marking Up with HTML lawrence snyder c.
Web Design HTML, Frontpage, DreamWeaver μέρος β ΠΡΥ019 - Πληροφορική Δρ.Βάσος Βασιλείου.
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.
ITCS373: Internet Technology HTML
HTML H yper T ext M arkup L anguage. HTML HTML is NOT case sensitive However, proper coding etiquette if for all to be in ALL CAPS and for text to be.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
1 Basic HTML. 2 Part 1: Basic Web Page Production.
F-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
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.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
HTML, Part Showing Pictures: The Image Tags Image Tag Format –src short for source –alt for text –Can use absolute or relative pathname.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Relative Pathnames Often links refer to other Web pages on the same site.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Explorers Guild April 27, What is HTML? Hypertext Markup Language (HTML) is the basic building block of the World Wide Web page. HTML files are.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
Just Enough HTML How to Create Basic HTML Documents.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
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 © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley A Hypertext Markup Language Primer Marking Up with HTML lawrence snyder c.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer block.
Chapter 2 Designing Web Pages With HTML JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Primer. A very good set of tutorials and references for HTML “Try it” feature lets you type in HTML.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Chapter 4 Source: CSE 190 M (Web Programming) lecture notes, es/slides/lecture02-basic_xhtml.html.
HyperText Markup Language. Web Hosting Creating a web site (on a site like iPage) –Buy domain name ( –iPage has registrar (e.g., FastDomain.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.
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
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.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
1 Week 3 XTML, Expression Web, WinSCP, & Mini-Project (MP1) Advanced Web Development IT225 Spring Term 2016 Marymount University School of Business Administration.
Basic Web Publishing M. Scott Gartner 7/15/98.
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
Aside on Conversions  . Aside on Conversions  
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
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
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS Dr. Zhizhang Shen Chapter 4: Talking in HTML: A Hypertext Markup Language Primer

1-2 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-2 What about it? Computers used to be a computing machine, i.e., it computes data. They are now mostly used as a communication machine to facilitate the exchange of information by doing lots of computing. The most common way is via WEB, as directed with a program written in HTML

1-3 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-3 Program with HTML Tags describe how a web page should look like. Formatting with Tags: –Words or abbreviations enclosed in angle brackets –Come in pairs (beginning and end): –Tags are not case-sensitive, but the actual text between the tags is. For example, – The Alto Computer

1-4 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-4 Tags for Bold, Italic, and underline Bold: Italic: Underline: –Tag pair surrounds the text to be formatted You can apply more than one kind of formatting at a time Veni, Vidi, Vici! produces: Veni, Vidi, Vici! –Tags can be in any order, but have to be nested in pairs Some tags do not surround anything, so they don't have an ending form. Closing angle bracket is replaced by /> – inserts a horizontal rule (line) – inserts a line break

1-5 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-5 From beginning to the end Begins with and ends with Preliminary material goes here, including … Main content of the page goes here

1-6 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-6 Structuring documents Markup language describes how a document's parts fit together Headings: –Choice of eight levels of heading tags to produce headings, subheadings, etc. –Headings display material in large font on a new line Pope Cardinal Archbishop produces: Pope Cardinal Archbishop

1-7 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-7

1-8 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-8 HTML format vs. display format HTML source tells the browser how to produce the formatted web pages based on the meaning of the tags. But HTML is usually written in a structured (indented) form to make it easier for the readers, programmers, team members, to understand Pope Cardinal Archbishop

1-9 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-9 White Space White space are inserted for readability –Spaces –Tabs –New lines Browser turns any sequence of white space characters into a single space before processing HTML –Exception: Preformatted information between and tags is displayed as it appears

1-10 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-10

1-11 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-11

1-12 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-12 More interesting symbols What if our web page needs to show a math relationship like 0 r The browser would interpret as a paragraph tag, and would not display it To show angle brackets, use escape symbol — ampersand (&) — then an abbreviation, then a semicolon (;) < displays as < > displays as > & displays as &

1-13 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-13 Special Characters << >> && (non-breaking space) &mdash– (em dash) Full list at

1-14 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-14 Accent marks in HTML Letters with accent marks use the escape symbol Ampersand, then letter, then the name of the accent mark, then semicolon &eactue; displays as é ñ displays as ñ Full list at

1-15 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-15

1-16 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-16 Attributes in HTML For justification, we need to specify left, right, or center Attributes appear inside the angle brackets of start tag, after tag word, with equal sign, value in double quotes. Do not use “fancy/smart quotes!!!” (default justification is left) Horizontal rule attributes: width and size (thickness) can be specified or left to default

1-17 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-17 Hook them together with links There are two sides of a hyperlink: 1.Anchor text (the text in the current document that is highlighted) 2.Hyperlink reference (the address of a Web page / target of the link) Begin with <a followed by a space Give the link reference using href="filename" Close the start anchor tag with > Text to be displayed for this link End anchor tag with Anchor Text Seen

1-18 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-18 Get real… Absolute pathnames: Reference pages at other web sites using complete URLs FIT

1-19 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-19 How to structure all these pages? We organize them into folders. Directory, or folder, is a named collection of files, other directories, or both Directory Hierarchy: Directories can contain other directories, which can contain other directories, etc. –Down, or lower in the hierarchy, means moving into subdirectories –Up, or higher in the hierarchy, means into enclosing (parent) directories

1-20 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-20 File Structure (cont'd) Part of the directory hierarchy is shown in the pathnames of URL's. Page is given by pathname: /galleries/ga1100/pioneer.html Each time we pass a slash (/), we move into a subdirectory or into the file (lower in the hierarchy)

1-21 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-21

1-22 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 3-22 Organizing the Directory When a URL ends in a slash, the browser looks for a file called index.html in that directory – and are the samehttp:// If the browser does not find an index.html file, the browser automatically tries to display a directory listing (index) of the files there Why are hierarchies important? –People use them to organize their thinking and work –Directories are free; there is no reason not to use them

1-23 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-23 How to include pictures Image Tag Format: –src short for source –Absolute and relative pathname rules apply Pictures can be used as links using anchor tag

1-24 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-24 Including pictures GIF and JPEG Images –GIF: Graphic Interchange Format 8 bits (256 colors or levels of gray) –JPEG: Joint Photographic Experts Group 24 bits (millions of colors – full color; levels of compression) –Tell browser which format image is in using filename extension (.gif,.jpg or.jpeg)

1-25 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-25 Where should I put them? By default, images are inserted in the page at the point where the tag is specified in the HTML, and the text lines up with the bottom of the image Align attribute can line up image with top of line of text, middle, or bottom Align left, center, or right attribute puts the image on the side of the browser window — text flows around it To put image on separate line, enclose within paragraph tags Can specify how large the image should be displayed (in pixels) with height and width attributes

1-26 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-26 Red, yellow or blue? Color is used for both background and text bgcolor attribute of body tag gives solid background color –Use hexadecimal color numbers (0-9 A-F) (magenta) –Or use predefined color terms color attribute can be used with body text, link, or font tags text

1-27 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-27

1-28 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-28

1-29 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-29

1-30 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-30

1-31 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-31

1-32 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-32

1-33 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-33 Handling lists Unnumbered (bulleted) list: – and tags begin and end the list – and tags begin and end the items within the list Ordered (numbered) list: – and tags begin and end the list –Uses the same tags Sublists: Insert lists within lists (between tags) Definitional list: – and tags begin and end the list – and surround the terms to be defined – and surround the definitions (indented)

1-34 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-34 How about tables? Tables begin and end with and tags Rows are enclosed in table row tags, and Cells of each row are surrounded by table data tags, and Create a caption centered at the top of the table with and tags Column headings are created as first row of table by using and tags instead of table data tags Check out the examples, starting at page 110.

1-35 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-35 Controlling text with tables Tables can control arrangement of information on a page e.g., a series of links listed across the top of the page could be placed in a one-row table to keep them together –If the window is too small to display all the links, table keeps them in a row and a scroll bar is added –If the tags are not in a table, the links will wrap to the next line instead –Let’s check out an example

1-36 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-36

1-37 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-37

1-38 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-38

1-39 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 4-39 Homework Multiple choices: all of them Complete Exercises 5, 6, 7, and 8. Finish Exercise 3 in the labnotes, then send in the link. Try to do as an impressive work as you could.