Chapter 2 Introduction to HTML5 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

WeB application development
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Hypertext Markup Language. Platform: - Independent  This means it can be interpreted on any computer regardless of the hardware or operating system.
 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.
HTML Introduction 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 14 Introduction to HTML
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
CS117 Introduction to Computer Science II Lecture 1 Introduction to WWW and HTML Instructor: Li Ma Office: NBC 126 Phone: (713)
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
 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.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
All Web pages are written with some form of HTML (HyperText Markup Language). HTML documents are saved as Text Only files so virtually any computer can.
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.
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.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
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.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
HTML: Hyptertext Markup Language Doman’s Sections.
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.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
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.
HTML Links HTML uses a hyperlink to another document on the Web.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
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
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
4.01 How Web Pages Work.
Intro to HTML CS 1150 Spring 2017.
HTML Basics.
4.01 How Web Pages Work.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Intro to HTML CS 1150 Fall 2016.
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
Chapter 4 - Introduction to XHTML: Part 1
1 Introduction to XHTML.
Introduction to HTML- Basics
Chapter 16 The World Wide Web.
Introduction to HTML.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Presentation transcript:

Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, 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 Introduction

We’ll create HTML5 documents by typing HTML5 markup text in a text editor (such as Notepad, TextEdit, vi, emacs) 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 Editing HTML5

Figure 2.1 is an HTML5 document named main.html, which is stored in the examples/ch02 folder. This first example displays the message Welcome to HTML5! in the browser First HTML5 Example

Document Type Declaration  The document type declaration (DOCTYPE) is required in HTML5 documents so that browsers render the page in standards mode.  Some browsers operate in quirks mode to maintain backward compatibility with web pages that are not up-to-date with the latest standards First HTML5 Example

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 First HTML5 Example

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 First HTML5 Example

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 ( = ) First HTML5 Example (cont.)

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, and also as the text identifying a page when users add the page to their list of Favorites or Bookmarks, enabling them to return to their favorite sites. – Search engines use the title for indexing purposes and when displaying results First HTML5 Example (Cont.)

Paragraph Element (... )  All text placed between the and tags forms one paragraph First HTML5 Example (Cont.)

HTML5 documents that are syntactically correct are guaranteed to render properly HTML5 documents that contain syntax errors may not display properly Validation services (e.g., validator.w3.org/#validate-by- upload ) ensure that an HTML5 document is syntactically correct W3C HTML5 Validation Service

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 Headings

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 Linking

 The strong element indicates that the content has high importance. Browsers typically render such text in a bold font.  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  When a URL does not indicate a specific document on the website, the web server returns a default web page. This page is often called index.html, but most web servers can be configured to use any file as the default web page for the site.  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 Linking (Cont.)

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 Linking (Cont.)