Week Eight lecture notes (MGDP2050)

From Wiki @ Karl Jones dot com
Revision as of 10:32, 18 April 2016 by Karl Jones (Talk | contribs) (Italic versus emphasis)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Lecture notes for Week Eight (MGDP2050).

HTML and semantics

In principle, the role of HTML is to provide semantics (meaning).

In practice, HTML is a mix of semantic and non-semantic elements.

Semantic HTML

Semantic HTML refers to HTML that is entirely semantic (or perhaps "very semantic with acceptable compromises").

Bold versus strong

Earlier versions of HTML specified a bold element, to make text display in boldface.

HTML 4 also specified a strong element, intended to replace the bold element.

Both elements are valid in HTML5.

Italic versus emphasis

Earlier versions of HTML specified an italic element, to make text display in italicf.

HTML 4 also specified an emphasis element, intended to replace the italic element.

Both i and em are valid in HTML5.

JavaScript

Recognizing JavaScript

Using JavaScript

Script element

Debugging JavaScript

  • See the browser console for JavaScript error messages and other browser-related tools.

JavaScript Validation

See JSLint and JSONLint.

jQuery

jQuery UI

jQuery UI is a set of interactive components for web pages.

It is built on jQuery.

Many of the features in jQuery UI are similar to features in Bootstrap (framework).

  • Using features from two libraries is not uncommon
  • Doing so adds complexity
  • You will probably need to write some custom CSS (and perhaps custom JavaScript)

See also