Markup Languages Flashcards
History
1967: GenCode by William W. Tunnicliffe
1970: TeX by Donald Knuth
1980: SGML by Goldfarb
1991: First publicly available description of HTML
1995: HTML 2
1997: HTML 3 and HTML 4
1998: XML by Jon Bosak
2000: XHTML 1
2014: HTML 5 & XHTML 5
Markup Language: where does the term derive from?
Derived from the traditional publishing practice of “marking up” a manuscript.
What does a mark up language do ?
Separate content from presentation Text with markup instructions (Tags)
Different types of mark up :
- Semantic Markup: Intended Purpose
* Presentational Markup: Intended Styling
Representation of Markup Documents
Abstract Syntax Tree
Document Object Model
How does a mark up document need to be to be Well-formed?
Opened and subsequently closed, or An empty element, which in that case must be terminated.
Example:
• <b>word</b>
• <i><b>word</b></i>
How does a mark up document need to be to be Valid?
Requires a document type declaration
• Defines the grammar
HTML elements
defines the whole document • element defines the document body (visible content) • <h1> element defines heading • </h1><p> element defines a paragraph • </p> element contains meta information about the document • element specifies a title for the document • HTML elements with no content is empty element, e.g., <br>
What are attributes
All HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag. Attributes usually come in name/value pairs like: name="value"
HTML elements:
- Headings
- Paragraphs
- Formatting
- Links
- Images
- Tables
- Lists
- Blocks
What are HTML forms used for?
Used to collect user input Declared using tag
• action: declares the action
• target: new tab vs. current window
• method: get or post
HTML forms Input elements:
• Text • Checkbox • Submit • Radio Select Textarea