Danulearn Open Danulearn
Unit 4

Web Authoring

πŸ“—Introduction
  • HTML (HyperText Markup Language) is the standard markup language for creating web pages.
  • It consists of elements such as <html>, <head>, <title>, <body>, <table> and <a> that describe the structure of a page and tell the browser how to display the content.
  • You learned the basics of HTML and web design in Grade 11.
  • This unit introduces another widely used markup language, XML.
  • It covers what XML is, the structure of an XML document, the differences between XML and HTML, and finally how a website is published.
🎯 Learning Outcomes
  • Explain how to use the extensible markup language (XML).
  • Analyse an XML document.
  • Describe basic XML tags.
  • Apply the syntax rules of XML documents.
  • Create simple XML documents.
  • Compare and contrast hypertext markup language (HTML) and XML.
  • Understand how to publish a website.
4.1  Introduction to XML
  • The eXtensible Markup Language (XML) is a markup language like HTML.
  • A markup language is a computer language that uses tags, enclosed between the less-than (<) and greater-than (>) symbols, to define elements within a document.
  • When a suitable application processes the file, the tags control the structure or presentation of the data.
  • Markup files contain ordinary words rather than typical programming syntax.
  • XML provides a standard open format and mechanisms for structuring a document so that it can be exchanged and manipulated.
  • It is used for storing structured data rather than for formatting information on a page.
  • HTML documents use predefined tags such as <head> and <title>; XML files use custom tags that you define yourself to meet the exact needs of your document.
  • Custom tags make data easier to organize and to search.
  • Rich Text Format (RTF), Portable Document Format (PDF) and HTML provide presentational markup.
  • They solve the problem of displaying information, but they describe only how the data looks, not what it is.
  • XML describes what the data is.
A student describes a book she read with her own tags
XML
<books>
  <book>
    <title>An Introduction to XML and Web Technologies</title>
    <author>Anders Moller, Michael Schwartzbach</author>
    <type>Programming Languages</type>
  </book>
</books>
  • XML does not change the way a web page looks; it changes the way documents are read, filed and stored.
  • It is useful in two areas: structuring data for storage where a relational database is inappropriate (small quantities of data, or data without a relational structure), and the presentation of web pages.
πŸ”’
The rest of Unit 4 is in the Danulearn app

Read the full notes for all 3 sections, worked examples and figures, plus 7 exercises with step-by-step solutions, the Short Note and the unit review.

πŸ“‘ Contents

  1. 4.1Introduction to XMLPreview
  2. 4.2HTML vs. XMLπŸ”’
  3. 4.3Publishing WebsiteπŸ”’