WeLearn

Grade 12 Information Technology · Unit 4

Web Authoring

Unit 4 of the Grade 12 Information Technology textbook has 3 lessons: Introduction to XML, HTML vs XML and Publishing a Website.

Lesson 4.1

Introduction to XML

XML (eXtensible Markup Language) is a markup language designed to store and transport data in a form that both people and computers can read. It was standardised by the World Wide Web Consortium (W3C).

XMLElementRoot elementAttributeWell-formedValid XMLDTD/XSD

Lesson 4.2

HTML vs XML

HTML (HyperText Markup Language) and XML are both markup languages that use tags in angle brackets, and both come from the older SGML family. However, they were designed for different purposes.

HTMLXMLPredefined tagsCase-sensitiveXHTMLMarkup language

Practice questions

3 of the 6 questions in the Unit 4 quiz. Try each one, then reveal the answer.

  1. 1. Which XML fragment is well-formed?

    • A. <name>Sara</Name>
    • B. <a><b>text</a></b>
    • C. <item id="5">Pen</item>
    • D. <price>20
    Show answer

    Answer: <item id="5">Pen</item>

    It has a quoted attribute and a matching end tag. The others have case-mismatched tags, wrong nesting or a missing end tag.

  2. 2. What is the main purpose of HTML compared with XML?

    • A. HTML describes and transports data
    • B. HTML displays data in a browser
    • C. HTML stores databases
    • D. HTML replaces CSS
    Show answer

    Answer: HTML displays data in a browser

    HTML focuses on presenting content (headings, paragraphs, images), while XML focuses on describing and carrying data.

  3. 3. Which system translates a domain name such as example.com into an IP address?

    • A. FTP
    • B. DNS
    • C. HTML
    • D. SEO
    Show answer

    Answer: DNS

    The Domain Name System looks up the IP address of the web server so the browser can connect to it.

Teach Information Technology Unit 4 with WeLearn

We will bring a demo to your school: a lesson on your interactive TV, a virtual lab and a classroom game, with your own teachers.