Introduction to HTML- Basics

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Advertisements

HTML popo.
Teppo Räisänen LIIKE/OAMK 2010
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
 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.
 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 2 Introduction to HTML5 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.
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.
Chapter 2 HTML (Hypertext Markup Language) Part I.
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 (HyperText Markup Language)
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
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.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
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.
1 Introduction to HTML: Part 1 Outline Introduction Elements and Attributes Editing HTML Common Elements Headers Images Unordered Lists Nested and Ordered.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML: Hyptertext Markup Language Doman’s Sections.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
1 Introduction to XHTML: Part 1 Outline Introduction Elements and Attributes Editing XHTML Common Elements W3C XHTML Validation Service Headers Linking.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Introduction to XHTML/HTML5 (part 1) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web (multiple editions)
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to HTML5.
Introduction to HTML.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Web Development & Design Foundations with HTML5 8th Edition
Chapter 24 – Introduction to XHTML Basic: Part I
Marking Up with XHTML Tags describe how a web page should look
Chapter 4 Introduction to XHTML: Part 1
4 Introduction to XHTML.
4 Introduction to XHTML.
4 Introduction to XHTML.
Elements of HTML Web Design – Sec 3-2
Chapter 4 Introduction to XHTML: Part 1
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
COMPUTING FUNDAMENTALS
4 Introduction to XHTML.
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 XHTML Cont:.
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:

Introduction to HTML- Basics Outline 1 Introduction 2 Editing HTML 3 First HTML Example 4 W3C HTML Validation Service 5 Headers 6 Linking 7 Images 8 Special Characters and More Line Breaks 9 Unordered Lists Nested and Ordered Lists Meta Elements Web Resources

In this chapter, you will learn: Objectives In this chapter, you will learn: To understand important components of HTML documents. To use HTML to create Web pages. To be able to add images to Web pages. To understand how to create and use hyperlinks to navigate Web pages. To be able to mark up lists of information. To be able to send Web page information to search engines

HyperText Markup Language 1  Introduction HyperText Markup Language HTML A markup language Separation of the presentation of a document from the structure of the document’s information Based on HTML Technology of the World Wide Web Consortium (W3C)

2 Editing HTML HTML documents Source-code form Text editor (e.g. Notepad, Wordpad, emacs, etc.) Text Authoring tool (FrontPage, DreamWeaver, etc.) .html or .htm file-name extension Web server Stores HTML documents Web browser Requests HTML documents

3 First HTML Example HTML comments Start with <!-- and end with --> You can ignore lines 1-3 for the following program. They are only some specs about XHTML (Extensible HTML, an advanced version of HTML) html element head element Head section Title of the document Style sheets and scripts body element Body section Page’s content the browser displays Start tag attributes (provide additional information about an element) name and value (separated by an equal sign) End tag

main.html (1 of 1)

4 W3C HTML Validation Service Validation service ( validator.w3.org ) Checking a document’s syntax URL that specifies the location of the file Uploading a file to the site validator.w3.org/file-upload.html

4 W3C HTML Validation Service

4 W3C XHTML Validation Service

Six headers ( header elements) h1 through h6

header.html (1 of 1)

6 Linking Hyperlink <strong> tag References other sources such as HTML documents and images Both text and images can act as hyperlinks Created using the a (anchor) element Attribute href Specifies the location of a linked resource Link to e-mail addresses using mailto: URL <strong> tag Bold

links.html (1 of 2)

links.html (2 of 2)

contact.html (1 of 1)

Internal Linking Enables the user to jump between locations in the same document

links.html (1 of 3)

links.html (2 of 3)

links.html (3 of 3)

picture.html (1 of 1)

7 Images Three most popular formats Pixels (“picture elements”) Graphics Interchange Format (GIF) Joint Photographic Experts Group (JPEG) Portable Network Graphics (PNG) img element src attribute Specifies the location of the image file width and height Pixels (“picture elements”) Empty elements Terminated by character / inside the closing right angle bracket (>), or by explicitly including the end tag br element Line break

nav.html (1 of 2)

nav.html (2 of 2)

8 Special Characters and More Line Breaks Character entity references (in the form &code;) Numeric character references (e.g. &) del Strike-out text sup Superscript text sub Subscript text <hr /> Horizontal rule (horizontal line)

contact2.html (1 of 2)

contact2.html (2 of 2)

Unordered list element ul 9  Unordered Lists Unordered list element ul Creates a list in which each item begins with a bullet symbol (called a disc) li (list item) Entry in an unordered list

links2.html (1 of 2)

links2.html (2 of 2)

10 Nested and Ordered Lists Represent hierarchical relationships Ordered lists (ol) Creates a list in which each item begins with a number

list.html (1 of 3)

list.html (2 of 3)

list.html (3 of 3)

Specify information about a document 11 meta Elements Specify information about a document Attribute name Identifies the type of meta element “keywords” ( name = “keywords” ) Provides search engines with a list of words that describe a page “description” ( name = “description” ) Provides a description of a site Attribute content Provides the information search engine use to catalog pages

main.html (1 of 2)

main.html (2 of 2)

12 Web Resources www.w3.org/TR/xhtml11 www.xhtml.org www.w3schools.com/xhtml/default.asp validator.w3.org hotwired.lycos.com/webmonkey/00/50/index2a.html wdvl.com/Authoring/Languages/XML/XHTML www.w3.org/TR/2001/REC-xhtml11-20010531