Markup Languages Controlling the Display Of Web Content.

Slides:



Advertisements
Similar presentations
HTML: HyperText Markup Language Hello World Welcome to the world!
Advertisements

HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
Images, Tables, lists, blocks, layout, forms, iframes
1 Lecture #5 Static Web Documents Shimrit Tzur-David HAIT Summer 2005.
17/10/11. 2  The form element ( ) is used to include a number of form elements together so that they can be referenced by some other code in order to.
HTML and XHTML Controlling the Display Of Web Content.
XHTML 16-Apr-17.
HTML and XHTML Controlling the Display Of Web Content.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Computing Concepts Advanced HTML: Tables and Forms.
1 (X)HTML (eXtensible HyperText Markup Language).
Computer Sciences Department
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Creating a Simple Page: HTML Overview
DAT602 Database Application Development Lecture 14 HTML.
COM621 – Interactive Web Development Lecture 1 - XHTML.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
CS 299 – Web Programming and Design Introduction to HTML.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
HTML Hyper Text Markup Language It is used for describing web documents or web pages. A markup language is set of markup tags. HTML documents are described.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Xingquan (Hill) Zhu
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
CP476 Internet Computing Lecture 7 HTML 1 What is HTML? HyperText Markup Language (HTML) is an application of Standard Generalized Markup Language (SGML)
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
2.2 XHTML (cont.). Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare.
HTML: Hyptertext Markup Language Doman’s Sections.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ HTML Training.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
1 Web Application Programming Presented by: Mehwish Shafiq.
CP102 Module 7: HTML 1 Module 7: HTML 1.What is 1.What is HTML? 2. 2.Basic syntax, document structure 3. 3.Basic formatting, images, links 4. 4.Lists,
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
HTML Forms.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, 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.
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.
INT222 – Internet Fundamentals
CIS 228 The Internet Day 2, 9/1/11 Hypertext. The Course Instructor: Bowen Alpern Office hour: GI 137-I, 4-5pm Tu.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
COM621: Advanced Interactive Web Development Lecture 1 – XHTML.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
The Web Warrior Guide to Web Design Technologies
Chapter 5 Introduction to XHTML: Part 2
Introduction to XHTML.
Web Design and Development
Presentation transcript:

Markup Languages Controlling the Display Of Web Content

Markup Languages  There are two components to any document  What it says (content)  How it looks  A markup language uses a special syntax to imbed information about how the content should be displayed in the file that contains the content.

Hypertext  The basic idea of hypertext has been around since 1945 when Vannever Bush suggested the usefulness of being able to automatically follow references from one document to another  Think of it as providing non-linear access to information

Hypertext Markup Language  A markup language designed for displaying information on the web  Standard maintained by the World Wide Web Consortium ( w3c.org )  Current standard is 4.01  Designed using a metalanguage called SGML  HTML is being transitioned to XHTML

XML  Extensible Markup Language  HTML has a limited number of element names  All browsers need to recognize these element names  XML allows a user to define new element names and specify how they are used

Defining XML Languages  Use XML Scheme language or a DTD to specify the tags that can be used and how to use them  Use cascading style sheets or XSL to define how the elements of the language are displayed

Syntax  Document should start with an XML declaration   An XML document consists of a hierarchy of nested elements.  content  The root element encloses all the other elements  Regular syntax makes it easy to parse

Well-Formed XML  has a root element  uses correct case  closes all elements  has elements nested properly  encloses all attributes in double quotes

XML Elements content  tag an element name optionally followed by a list of attributes  content can include other elements  The ending tag needs to have the same name as the start tag  All elements must be closed

Elements with no content  Some elements may have only attributes associated with them  for example, an image has a source file as an attribute and no content  In this situation, you can use the special form

Tags  Tags are enclosed by  Tags consist of a name followed by zero or more attributes  Attributes are separated by white space  Some tags can appear only in certain contexts

Attributes  Attributes have the form  Attrname="value"  The value must have double quotes around it  Attributes may be required or optional

Who uses XML?  Ant build files are XML files  Mac OS X preference files use XML

XHTML  XHTML is very similar to HTML except the syntax is stricter  Based on XML instead of SGML  A DTD (Document Type Definition) is used to define the allowed elements which are basically the same as those used in HTML  Names of tags and attributes are all lower case in XHTML

Types of Markup Element  Structural - describes purpose (e.g. headers and titles)  Presentational - describes how it looks  Hypertext -links to other documents or other parts of the document  Trend is to move presentational markup into separate document (e.g. CSS).

Top-level elements Elements  html  head  Contains elements describing document  body  Can contain only block-level elements

Head Elements  - page title generally appears in browser title bar   - related documents  - data about document  - URL  - language for client-side scripting

Block-level Elements  Behave like paragraphs  Headings …  for paragraphs , for pre-formatted text and quotations  to create blocks  Lists -,,  Tables and Forms  for horizontal lines

Inline Elements  Behave like words, characters, phrases  for anchors  line break  for images  Emphasis and styling,,,, …  In HTML, there are tags like,, that you should now implement in a stylesheet

Odds and Ends  Entities are escape sequences for characters that are used by HTML and some non-keyboard characters < > &  Special characters can be specified by their unicode value. © ¢  Comments are enclosed by

Minimal HTML Document in title bar Marked-up content

Links  The tag is used for making links, either internally or externally  Attribute href="location" where location can be a URL or a relative path or a name in the current document  Attribute name allows you to create label to a particular part of the document for local links

Images  You can link to an image file and have that file open in the browser  You use the image tag to embed an image into another document  where image is the location of the image file  jpg, gif and png formats supported

Page Layout  For vertical layout use paragraphs, headings and rules  If you need horizontal as well as vertical formatting, use tables  A table cell can hold all sorts of other elements

Tables  Use the tag to create a table  Use border, cellspacing, cellpadding to control looks  Use … and … to group rows together  … for each row  for each cell in the row  for column and row labels (bold)  colspan and rowspan allow you to make irregular tables

Sample Table …

Forms  is a block-level element in the body of your HTML page  A form element can contain text input boxes, buttons, checkboxes, pull-down menus and images  Your document can have multiple form elements  A special button called Submit is used to send the form data to the server

Form Attributes  action (required) - provides the URL of the application that needs to get the form data  A cgi program or a mailto URL  method (required) - POST or GET  Other tags  enctype - encoding format for the data  Accept-charset  target - to send results to another window  id, name, title  event

Form Elements  Use the tag to create controls  type="input-type" needed to specify which type of control  name attribute needed to identify the element  There are special tags for, and

Input types  checkbox - for on/off options  radio - to select from several choices  name must be the same for all buttons in group  text - one-line text entry, you can specify maximum length  password - similar to text but the typed characters are masked  provides multi-line text input

Input types  button - to trigger an immediate action, usually some JavaScript code specified in the event attribute  reset - clears the form  submit - activates the form processing sequence  image - creates a clickable image which triggers submit action  coordinates of the mouse are transmitted with the rest of the form data  tag works like button but gives you more control

Input types  file - allows user to specify name of file to be uploaded  hidden - stores information that is transmitted but not seen by the user  - pull-down menus  elements define choices

Frames  Use frames to display multiple pages in a single window  Use the following DOCTYPE declaration <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" >  Replace the element with a element  rows and cols attributes control subdivision  use a element to give source and attributes for each frame (no content)

Framesets  Each creates a grid  cols and rows control the number of boxes  use one element for each box  use another to nest another grid into a box

frames  Each needs a URL in the href attribute  links within the displayed pages can use the target attribute to cause the linked page to be displayed in a different frame

Presentation Style  Style sheets are external specifications of desired style  linked to the document with a element in the element  element in element  style attribute in a particular element  style="property1=value1; property2=value2; … "

Sources  Web Design and Programming by Paul S. Wang and Sanda S. Katila  HTML The Definitive Guide by Chuck Musciano and Bill Kennedy  Wikipedia   W3C 