Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc. 2013. All Rights Reserved.

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.
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling.
 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.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
Marking Up With Html: A Hypertext Markup Language Primer
 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.
Developing a Basic Web Page with HTML
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
© 2005 ComputerPREP, Inc. All rights reserved. HTML 4.0 and Web Page Design Module I.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 16 The World Wide Web Chapter Goals ( ) Compare and contrast the Internet and the World Wide Web Describe general Web processing.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
.  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 
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
Understanding HTML Code
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
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.
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.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
Just Enough HTML How to Create Basic HTML Documents.
HTML: Hyptertext Markup Language Doman’s Sections.
1 Introduction to XHTML: Part 1 Outline Introduction Elements and Attributes Editing XHTML Common Elements W3C XHTML Validation Service Headers Linking.
U NDERSTAND THE W EB AND D IGITAL C OMMUNICATIONS P ATHWAY 4.02 U NDERSTAND HOW W EBPAGES ARE CREATED AND USED.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
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.
Internet & World Wide Web How to Program, 5/e. Revised by Dr. T. Tran for CSI3140 Copyright © Pearson, Inc All Rights Reserved.2.
2.1 XHTML. Motto High thoughts must have high language. –Aristophanes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introduction to XHTML 1 Chapter 4 Introduction to XHTML: Part 1 Reference From: Internet & World Wide Web: How to Program Deitel, Deitel & Goldburg.
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
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
Introduction to XHTML/HTML5 (part 1) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web (multiple editions)
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Introduction to HTML5.
HTML Basics.
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
Chapter 4 - Introduction to XHTML: Part 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
1 Introduction to XHTML.
Introduction to HTML- Basics
Chapter 16 The World Wide Web.
Introduction to HTML.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.

 2008 Pearson Education, Inc. All rights reserved.

 HTML5 (HyperText Markup Language 5)  markup language that specifies the structure and content of documents that are displayed in web browsers  We introduce some basics, then cover more sophisticated HTML5 techniques such as:  tables, which are particularly useful for structuring information from databases (i.e., software that stores structured sets of data)  forms for collecting information from web-page visitors  internal linking for easier page navigation  meta elements for specifying information about a document 5

 2008 Pearson Education, Inc. All rights reserved.  We’ll create HTML5 documents by typing HTML5 markup text in a text editor (TextPad) and saving it with the.html or.htm filename extension.  Computers called web servers store HTML5 documents.  Clients (such as web browsers running on your local computer or smartphone) request specific resources such as HTML5 documents from web servers. 6

 2008 Pearson Education, Inc. All rights reserved.  Figure 2.1 is an HTML5 document named main.html,  This first example displays the message Welcome to HTML5! in the browser. 7

 2008 Pearson Education, Inc. All rights reserved. Welcome Welcome to HTML5! </html

 2008 Pearson Education, Inc. All rights reserved. Document Type Declaration  The document type declaration (DOCTYPE) is required in HTML5 documents so that browsers render the page in standards mode. 9

 2008 Pearson Education, Inc. All rights reserved. Comments  Insert comments in your HTML5 markup to improve readability and describe the content of a document.  The browser ignores comments when your document is rendered.  Comments start with. 10

 2008 Pearson Education, Inc. All rights reserved. html, head and body Elements  HTML5 markup contains text (and images, graphics, animations, audios and videos) that represents the content of a document and elements that specify a document’s structure and meaning.  The html element encloses the head section (represented by the head element) and the body section (represented by the body element).  The head section contains information about the HTML5 document, such as the character set ( UTF-8, the most popular character-encoding scheme for the web) that the page use—which helps the browser determine how to render the content—and the title.  The head section also can contain special document-formatting instructions called CSS3 style sheets and client-side programs called scripts for creating dynamic web pages.  The body section contains the page’s content, which the browser displays when the user visits the web page. 11

 2008 Pearson Education, Inc. All rights reserved. Start Tags and End Tags  HTML5 documents delimit most elements with a start tag and end tag.  A start tag consists of the element name in angle brackets  For example,  An end tag consists of the element name preceded by a forward slash ( / ) in angle brackets  For example,  There are several so-called “void elements” that do not have end tags.  Many start tags have attributes that provide additional information about an element, which browsers use to determine how to process the element.  Each attribute has a name and a value separated by an equals sign ( = ). 12 Although HTML5 element and attribute names are case insensitive (you can use uppercase and lowercase letters), it’s a good practice to use only lowercase letters.

 2008 Pearson Education, Inc. All rights reserved. Title Element  The title element is called a nested element, because it’s enclosed in the head element’s start and end tags.  The head element is also a nested element, because it’s enclosed in the html element’s start and end tags.  The title element describes the web page.  Titles usually appear in the title bar at the top of the browser window, in the browser tab on which the page is displayed.  Search engines use the title for indexing purposes and when displaying results 13

 2008 Pearson Education, Inc. All rights reserved. Paragraph Element (... )  All text placed between the and tags forms one paragraph. 14

 2008 Pearson Education, Inc. All rights reserved.  HTML5 documents that are syntactically correct are guaranteed to render properly  HTML5 documents that contain syntax errors may not display properly 15

 2008 Pearson Education, Inc. All rights reserved.  HTML5 provides six heading elements (h1 through h6) for specifying the relative importance of information  Heading element h1 is considered the most significant heading and is rendered in the largest font.  Each successive heading element (i.e., h2, h3, etc.) is rendered in a progressively smaller font. 16

 2008 Pearson Education, Inc. All rights reserved. Headings Level 1 Heading Level 2 heading Level 3 heading Level 4 heading Level 5 heading Level 6 heading

 2008 Pearson Education, Inc. All rights reserved.

 A hyperlink references or links to other resources, such as HTML5 documents and images.  Web browsers typically underline text hyperlinks and color them blue by default. 19 Link syntax link text

 2008 Pearson Education, Inc. All rights reserved. Links Here are my favorite sites: Click a name to visit that site. Facebook My university Maktoob Google

 2008 Pearson Education, Inc. All rights reserved.  Links are created using the a ( anchor ) element.  Attribute href ( hypertext reference ) specifies a resource’s location, such as  a web page or location within a web page  a file  an address  If the web server cannot locate a requested document, it returns an error indication to the web browser (known as a 404 error), and the browser displays a web page containing an error message. 21

 2008 Pearson Education, Inc. All rights reserved. Hyperlinking to an Address  Anchors can link to an address using a mailto: URL  When a user clicks this type of anchored link, most browsers launch the default program (e.g., Mozilla Thunderbird, Microsoft Outlook or Apple Mail) to enable the user to write an message to the linked address. 22

 2008 Pearson Education, Inc. All rights reserved. Contact Page To write to me click here

 2008 Pearson Education, Inc. All rights reserved.  The most popular image formats used by web developers today are PNG (Portable Network Graphics) and JPEG (Joint Photographic Experts Group).  Users can create images using specialized software, such as Adobe Photoshop Express ( G.I.M.P. ( Inkscape ( and many more.  Images may also be acquired from various websites, many of which offer royalty-free images. 24

 2008 Pearson Education, Inc. All rights reserved. Images <img src = "download.jpg" width = "92" height = "120" alt = "Astronomy Picture"> <img src = "download2.jpg" width = "92" height = "120" alt = "Astronomy Picture"> </html

 2008 Pearson Education, Inc. All rights reserved.  The img element’s src attribute specifies an image’s location  Every img element must have an alt attribute, which contains text that is displayed if the client cannot render the image  The alt attribute makes web pages more accessible to users with disabilities, especially vision impairments  Width and height are optional attributes  If omitted, the browser uses the image’s actual width and height  Images are measured in pixels 26

 2008 Pearson Education, Inc. All rights reserved. alt Attribute  A browser may not be able to render an image.  Every img element in an HTML5 document must have an alt attribute.  If a browser cannot render an image, the browser displays the alt attribute’s value.  The alt attribute is also important for accessibility—speech synthesizer software can speak the alt attribute’s value so that a visually impaired user can understand what the browser is displaying. For this reason, the alt attribute should describe the image’s contents. 27

 2008 Pearson Education, Inc. All rights reserved. Using Images as Hyperlinks  By using images as hyperlinks, you can create graphical web pages that link to other resources.  In next example, we create five different image hyperlinks.  Clicking an image in this example takes the user to a corresponding web page—one of the other examples in this chapter. 28

 2008 Pearson Education, Inc. All rights reserved. Navigation Bar Note:The Images directory and the HTML5 document are in the same directory.

 2008 Pearson Education, Inc. All rights reserved.

 HTML5 provides character entity references (in the form & code ; ) for representing special characters that cannot be rendered otherwise  The code can be:  Word abbreviations  Numbers  Decimal  Hexadecimal 31

 2008 Pearson Education, Inc. All rights reserved.

 Figure 2.9 demonstrates how to use special characters in an HTML5 document.  For an extensive list of character entities, see 34

 2008 Pearson Education, Inc. All rights reserved. Contact Page Send&nbspan to Deitel &Associates, Inc.. All information on this site is © Deitel & Associates, Inc element --> You may download 3.14 x 10 2 characters worth of information from this site. The first &quotitem in the series is x 1. Note: < ¼ of the information presented here is updated daily.

 2008 Pearson Education, Inc. All rights reserved.

 A horizontal rule, indicated by the tag renders a horizontal line with extra space above and below it in most browsers.  The horizontal rule element should be considered a legacy element and you should avoid using it.  CSS can be used to add horizontal rules and other formatting to documents.  Special characters can also be represented as numeric character references—decimal or hexadecimal (hex) values representing special characters.  For example, the & character is represented in decimal and hexadecimal notation as & and &, respectively. 37

 2008 Pearson Education, Inc. All rights reserved.