Difference between revisions of "Week Eight lecture notes (MGDP2050)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
Line 64: Line 64:
 
* Doing so adds complexity
 
* Doing so adds complexity
 
* You will probably need to write some custom [[CSS]] (and perhaps custom [[JavaScript]])
 
* You will probably need to write some custom [[CSS]] (and perhaps custom [[JavaScript]])
 +
 +
== See also ==
 +
 +
* [[Week Eight (MGDP2050)]]
 +
 +
[[Category:MGDP2050 weekly pages]]

Revision as of 10:25, 5 April 2016

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 elements 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