How do I use HTML and XML to present information?.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

XSL eXtensible Stylesheet Language. What is XSL? XSL is a language that allows one to describe a browser how to process an XML file. XSL can convert an.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
An Introduction to XML Based on the W3C XML Recommendations.
XML XML What XML is and what it means to me as a Computer Scientist By: Derek Edwards CS 376 March 10, 2003.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
HTML and XHTML Controlling the Display Of Web Content.
IS 373—Web Standards Todd Will
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
DT228/3 Web Development Introduction to XML.
XML CS 105. What is XML? XML stands for Extensible Markup Language. XML is a markup language like HTML. XML was designed to describe data. You must define.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Tutorial 11 Creating XML Document
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
Introduction to XML This material is based heavily on the tutorial by the same name at
Introduce of XML Xiaoling Song CS157A. What is XML? XML stands for EXtensible Markup Language XML stands for EXtensible Markup Language XML is a markup.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
Creating a Simple Page: HTML Overview
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
 Introduction to XML Introduction to XML  Features of XML Features of XML  Syntax of XML Syntax of XML  Syntax rules of XML document Syntax rules.
DAT602 Database Application Development Lecture 14 HTML.
What is XML? XML stands for EXtensible Markup Language
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
XML Technologies Surekha Akula
XML - DTD. The building blocks of XML documents Elements, Tags, Attributes, Entities, PCDATA, and CDATA.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
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.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
These Questions are copied from
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
CIS 275—Web App Dev I XML. 2 Introduction to XMLXML XML stands for ________________________. HTML was designed to display data. XML was designed to _________.
1 Dr Alexiei Dingli XML Technologies XML. 2 XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XML EXtensible Markup Language. Agenda Introduction to XML XML Rules XML Elements XML Attributes XML Validation XML Exercises XML Namespaces XML CDATA.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
An Introduction to XML Sandeep Bhattaram
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
XML Basics A brief introduction to XML in general 1XML Basics.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
Well Formed XML The basics. A Simple XML Document Smith Alice.
ASHIMA KALRA  INTRODUCTION OF XML INTRODUCTION OF XML  XML FEATURES XML FEATURES  XML SYNTAX XML SYNTAX  XML ELEMENTS XML ELEMENTS  XML ATTRIBUTES.
Introduction to DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
IS444: Modern software development tools Dr. Azeddine Chikh.
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
XML Introduction to XML Extensible Markup Language.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
First Prototype Presentation, Sprint Review and the Game Dev Production Process CS 153P Session 8.
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML intro. What is XML? XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
What is XML?.
Presentation transcript:

How do I use HTML and XML to present information?

Markup Languages Set of commands that tell a program how to display content Written in plain text Browser converts markup language to a visual display HTML, XML are markup languages

Basic HTML Document The Title Here is the content of the page

HTML Components Tags are enclosed in Tags are closed with a / Elements are an opened and closed tag –Example The Title

HTML Attributes Tags can have attributes BGCOLOR is an example Name value pairs –BGCOLOR=“#CCFFFF” –BGCOLOR is the name, #CCFFFF is the value Minimized attributes have no value –SELECTED –BGFIXED

HTML Components In HTML each tag has a meaning. e.g. Hello bold and italicized You can embed you data in these tags to present the information on the Web. This structure is defined in a DTD, a Document Type Definition

XML Basics XML - EXtensible Markup Language XML is much like HTML Elements and tags Developer can create new tags as needed Document content is described rather than format Must be well formed (more about this later)

XML Document Sections An XML document can have the following three sections Prolog (optional) Stuff before the top-level, start-tag is called the "prolog". Body Epilog (optional) Stuff after the top-level, end-tag is called the "epilog"

Sample XML File Alan Abbeydale road Sheffield Male BODY Prolog Epilog

Another example of the same XML File Sarah 42, Oldbridge Court Oldbridge Road London Female

Creating an XML Document Overview Research XML Applications Create a data model Write the ‘XML’ document Test the XML document

XML Snippet John Smith 35

XML Entities and Data Entities are XML files or documents Data is part of an XML document May be parsed or unparsed –Parsed holds all character data –Unparsed holds character or non character data

XML Names Attributes and elements will be named Standard programming rules apply –No spaces –Must begin with a letter –No _ or : Name must not start with XML in any case

XML Elements Fields in the XML document Elements are often nested hierarchically –Must be nested correctly All tags must have an ending tag Elements may have attributes

XML Attributes Must be in name-value pair format –Height=“65” Any element may have an attribute Two reserved attributes –Xml:space and xml:lang

XML Character Data Character data is text in the document, not markup tags Certain characters are reserved and must be entered using character references & < > are typical character references

XML Comments Just like HTML comments

HTML – You can develop HTML documents in FrontPage or Dreamweaver XML - You can develop XML documents in XMLSpy Tools used to develop HTML & XML Documents

XMLHTML XML was designed to carry data. XML was designed to describe data and to focus on what data is HTML was designed to display data and to focus on how data looks. XML is about describing information HTML is about displaying information, The main difference between XML and HTML

XML Syntax The syntax rules of XML are very simple and very Strict. Lets start by reviewing a simple XML file Tove Jani Reminder Don't forget me this weekend!

Tove Jani Reminder Don't forget me this weekend! This is the root element These are the child elements This line defines that this is an XML file A simple XML file containing data about an

Tove Jani Reminder Don't forget me this weekend! The XML page cannot be displayed cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. End tag 'Ffrom' does not match the start tag 'from'. Line 5, Position 14 Jani ^ The same XML file with an error

All XML elements must have a closing tag In HTML, you would write This is a paragraph In XML, you would write This is a paragraph XML Tags are case sensitive This is incorrect Phil This is correct Phil XML Syntax

All XML elements must be properly nested This is incorrect Tove This is correct Tove All XML documents must have a root tag and only one root tag XML Syntax

XML ELEMENTS XML Elements have Relationships XML elements have a child parent relationship Lets review the following structure Book Title: My First XML Chapter 1: Introduction to XML What is HTML What is XML Chapter 2: XML Syntax Elements must have a closing tag Elements must be properly nested

XML ELEMENTS The book details structure in XML would look like My First XML Introduction to XML What is HTML What is XML XML Syntax Elements must have a closing tag Elements must be properly nested

Book is the root element. Title, prod, and chapter are child elements of book. Book is the parent element of title, prod, and chapter. Title, prod, and chapter are siblings (or sister elements) because they have the same parent. XML ELEMENTS

"Well Formed" XML documents A "Well Formed" XML document has correct XML syntax. A "Well Formed" XML document is a document that conforms to the XML syntax rules that were described in the previous slides

Maybe it is a little hard to understand, but XML does not DO anything. XML is created to structure, store, and to send information. The following example is a note to Tove from Jani, stored as XML: Tove Jani Reminder Don't forget me this weekend! The note has a header, and a message body. It also has sender and receiver information. But still, this XML document does not DO anything. It is just pure information wrapped in XML tags. Someone must write a piece of software to send, receive, or display it. XML was not designed to DO anything