Skip to main content

Markup Languages: Markup Languages

Markup Languages
Markup Languages
    • Notifications
    • Privacy
  • Project HomeTools and Techniques in Software Engineering
  • Projects
  • Learn more about Manifold

Notes

Show the following:

  • Annotations
  • Resources
Search within:

Adjust appearance:

  • font
    Font style
  • color scheme
  • Margins
table of contents
  1. Markup Languages
  2. 1. Grammar of HTML
  3. 2. Organizing HTML
  4. 3. Dialects
    1. 3.1. HTML
    2. 3.2. XML
    3. 3.3. XHTML
  5. 4. Attributes
  6. 5. Semantic HTML
  7. 6. Developing with HTML
  8. 7. Evolution
  9. 8. Bibliography

Introduction to Markup Languages

This section provides an introduction to two markup languages.

  • XML: a general-purpose markup language (simple and regular)
  • HTML: special-purpose markup language for Web documents (arose in a quirky irregular form, has gradually become more clean)

Markup languages

As opposed to a plain text file with .TXT file extension, markup languages enable a way to format text.

Markup tags provide additional information about the text display, such as:

  • How to display it (<i> for italic, <ul> for unordered lists)
  • What is the meaning of the text (<h1> means top-level heading, <button> means a graphical button that can be clicked with the mouse)
  • Embedding non-text items such as images, videos, etc

Markup languages have been around since the 1960s, reinvented several times in the 70s and 80s, and became widespread by the late 1980’s. Before XML each person/group had their own custom format, there was no industry standard. Thus there were also limited tools for managing data.

Which version to use?

These days, HTML could refer to HTML or XHTML or HTML5.

HTML5 is the most common choice. XHTML is a better choice if choosing between HTML and XHTML, but in most general cases it won’t matter too much. Try to use XHTML when you don’t know which to choose. To choose, you’d specify at the top of an html file the doctype. Note that each of these versions have slight variations. Read HTML vs HTML5 vs XHTML: Understanding the Difference.

Annotate

Next Chapter
1. Grammar of HTML
Next
Web Technology
Powered by Manifold Scholarship. Learn more at
Opens in new tab or windowmanifoldapp.org