HTML Elements, Attributes and Values
Elements, Attributes and Values
•
The HTML5 specification defines a set of elements, attributes, and
attribute values and their meanings (semantics)
(there are more than 100 different elements alone)
•
Authors of HTML documents should not use elements, attributes, or
attribute values for purposes other than their intended semantic purpose
; otherwise documents might not be processed correctly
(still, most authors violate this rule)
•
HTML5 follows the separation of concerns design principle:
a system should be divided into parts with functionality that overlaps
as little as possible
; in HTML5 semantics and presentation are (mostly) separated
•
For the full specification of the most recent version see
S. Faulkner, A. Eicholz, T. Leithead, A. Danilo, S. Moon, editors:
HTML 5.2. W3C Recommendation, 14 December 2017.
https://www.w3.org/TR/html52/ (accessed 09 September 2019)
COMP519 Web Programming Lecture 2 Slide L2 – 14