Markup Languages Flashcards

1
Q

History

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Markup Language: where does the term derive from?

A

Derived from the traditional publishing practice of “marking up” a manuscript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does a mark up language do ?

A

Separate content from presentation Text with markup instructions (Tags)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Different types of mark up :

A
  • Semantic Markup: Intended Purpose

* Presentational Markup: Intended Styling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Representation of Markup Documents

A

Abstract Syntax Tree

Document Object Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does a mark up document need to be to be Well-formed?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does a mark up document need to be to be Valid?

A

Requires a document type declaration

• Defines the grammar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

HTML elements

A
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>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are attributes

A
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"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

HTML elements:

A
  • Headings
  • Paragraphs
  • Formatting
  • Links
  • Images
  • Tables
  • Lists
  • Blocks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are HTML forms used for?

A

Used to collect user input Declared using tag
• action: declares the action
• target: new tab vs. current window
• method: get or post

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

HTML forms Input elements:

A
• Text
• Checkbox
• Submit
• Radio
Select
Textarea
How well did you know this?
1
Not at all
2
3
4
5
Perfectly