 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.

Slides:



Advertisements
Similar presentations
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Advertisements

Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
 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.
 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.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
CS105 Introduction to Computer Concepts HTML
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 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.
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.
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.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
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 Web Site Development John Hurley Department of Computer Science California State University, Los Angeles Lecture 4: Favicons Tables and.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
Jozef Goetz contribution, J. Goetz, 2016  Pearson Education, Inc. All rights reserved.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
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.
Introduction to HTML5.
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
4 Introduction to XHTML.
Working with Tables: Module A: Table Basics
4 Introduction to XHTML.
4 Introduction to XHTML.
>> HTML: Tables.
Elements of HTML Web Design – Sec 3-2
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 1: Introduction to XHTML (part 1)
Chapter 5 Introduction to XHTML: Part 2
Introduction to XHTML.
Elements of HTML Web Design – Sec 3-2
Chapter 4 - Introduction to XHTML: Part 1
COMPUTING FUNDAMENTALS
4 Introduction to XHTML.
Computers and Scientific Thinking David Reed, Creighton University
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
Introduction to XHTML Cont:.
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:

 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML

 2008 Pearson Education, Inc. All rights reserved First XHTML Example In HTML, text is marked up with elements delimited by tags that are names contained in pairs of angle brackets – Every HTML document contains a start tag and an end tag Some elements may contain attributes that provide additional information about the element Comments in HTML always begin with. The browser ignores all text inside a comment

 2008 Pearson Education, Inc. All rights reserved First XHTML Example (Cont.) Every HTML document contains a head element which generally contains: – A title – A body element head element – generally is not rendered in the display window

 2008 Pearson Education, Inc. All rights reserved First XHTML Example (Cont.) The title element: – Names a web page – Usually appears in the colored bar (called the title bar) at the top of the browser window – Is the text identifying a page when users add your page to their list of Favorites or Bookmarks The body element: – Contains the document’s content, which may include text and tags

 2008 Pearson Education, Inc. All rights reserved First XHTML Example (Cont.) All text placed between the and tags forms one paragraph

 2008 Pearson Education, Inc. All rights reserved First XHTML Example (Cont.) HTML documents delimit an element with start and end tags – A start tag consists of the element name in angle brackets (e.g., ) – An end tag consists of the element name preceded by a forward slash ( / ) in angle brackets (e.g., ) Many start tags have attributes that provide additional information about an element – Each attribute has a name and a value separated by an equals sign ( = )

 2008 Pearson Education, Inc. All rights reserved. 7 Fig. 4.1 | First XHTML example. Creates a head element Creates a title element, which contains the text Welcome Creates a p element within the body, which displays welcome text XHTML comments, not interpreted by the browser

 2008 Pearson Education, Inc. All rights reserved Headings HTML provides six headings (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

 2008 Pearson Education, Inc. All rights reserved. 9 Fig. 4.2 | Heading elements h1 through h6. Creates six headings, each with decreasing significance

 2008 Pearson Education, Inc. All rights reserved Linking A hyperlink references or links to other resources, such as HTML documents and images Web browsers typically underline text hyperlinks and color them blue by default

 2008 Pearson Education, Inc. All rights reserved Linking (Cont.) Users can insert links with the a (anchor) element. – The href attribute specifies the resource (e.g., page, file, e- mail address) being linked – 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., Outlook Express) to initiate an message addressed to the linked address

 2008 Pearson Education, Inc. All rights reserved | Linking to other web pages. Creates anchor elements that link to the URL specified in the href attribute

 2008 Pearson Education, Inc. All rights reserved. 13 Fig. 4.4 | Linking to an address (Part 1 of 2). Hyperlink that creates a message to the address with the computer’s default program

 2008 Pearson Education, Inc. All rights reserved Images 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

 2008 Pearson Education, Inc. All rights reserved Images (Cont.) Create an image hyperlink by nesting an img element in an anchor element

 2008 Pearson Education, Inc. All rights reserved. 16 Fig. 4.6 | Images as link anchors (Part 1 of 2). Creates a hyperlinked image

 2008 Pearson Education, Inc. All rights reserved. 17 Fig. 4.6 | Images as link anchors (Part 1 of 2).

 2008 Pearson Education, Inc. All rights reserved Lists Unordered list element ul – creates a list in which each item in the list begins with a bullet symbol – Each entry is an li (list item) element. Most web browsers render these elements with a line break and a bullet symbol at the beginning of the line

 2008 Pearson Education, Inc. All rights reserved. 19 Fig. 4.8 | Unordered list containing hyperlinks (Part 1 of 2). Creates an unordered list Makes hyperlinked elements into individual list items

 2008 Pearson Education, Inc. All rights reserved Lists (Cont.) The ordered list element ol creates a list in which each item begins with a number Lists may be nested to represent hierarchical data relationships

 2008 Pearson Education, Inc. All rights reserved Tables table element – defines an HTML table – Attribute summary summarizes the table’s contents and is used by speech devices to make the table more accessible to users with visual impairments – Element caption describes the table’s content The text inside the tag is rendered above the table in most browsers

 2008 Pearson Education, Inc. All rights reserved Tables (Cont.) A table can be split into three distinct sections: – Head ( thead element) Table titles Column headers – Body ( tbody element) Primary table data – Foot ( tfoot element) Calculation results Footnotes Above body section in the code, but displays at the bottom in the page

 2008 Pearson Education, Inc. All rights reserved Tables (Cont.) Element tr – Defines individual table rows – Element th Defines a header cell – Element td Contains table data elements

 2008 Pearson Education, Inc. All rights reserved | Creating a basic table (Part 1 of 3). Begins a new XHTML table Sets the table’s border to be one pixel wide Sets the table’s width to 40% of the screen Describes the table’s contents in the summary attribute Sets the text above the table Creates a head element Creates a table heading cell in the new table row Makes a new table row Creates the next cell in the row

 2008 Pearson Education, Inc. All rights reserved | Creating a basic table (Part 2 of 3). Creates a foot section Creates table header cells at the bottom of the table Creates a body section Inserts a cell in the body of the table Ends the table

 2008 Pearson Education, Inc. All rights reserved | Creating a basic table (Part 3 of 3).

 2008 Pearson Education, Inc. All rights reserved Tables (Cont.) You can merge data cells with the rowspan and colspan attributes – The values of these attributes specify the number of rows or columns occupied by the cell – Can be placed inside any data cell or table header cell

 2008 Pearson Education, Inc. All rights reserved | Complex XHTML table (Part 1 of 3). Makes the header cell span 2 rows

 2008 Pearson Education, Inc. All rights reserved | Complex XHTML table (Part 2 of 3). Makes the header cell span 4 columns

 2008 Pearson Education, Inc. All rights reserved | Complex XHTML table (Part 3 of 3).