basics of website design banner photo

HTML

HTML 5

CSS 2.1

CSS 3

Reference

HTML5 - Elements changed from HTML4

These elements are in both HTML4 and HTML5 but their meanings have altered between the two specifications.

More detailed information about these changes and the attributes that apply to each element are given on individual linked pages.

NOTE: These changes are by no means fully supported in even the newest browser versions.

HTML 5 Changed Elements.

Element Definition
a The anchor element can now contain block content such as a paragraph.
b Only presentational in HTML4 - now applies to text which would be shown as bold in a written work.
cite In HTML4 this element could contain a person's name but in HTML5 this is no longer permitted and the citation must be the title of a work such as a book, poem, song etc..
!doctype Much simpler declaration in HTML5.
hr Presentational in HTML4 - now indicates a change of theme in a document.
i Used to display text which would normally be in italics in a written document.
input Element for form input - new input types detailed in HTML5 along with new attributes.
menu Set for removal as it was deprecated in HTML4, but has now been retained to represent a list of commands in the form of a menu.
meta The charset attribute has been added and the http-equiv attribute has been altered.
s Presentational in HTML4 - now indicates content that is no longer accurate or relevant.
small Presentational in HTML4 - used now for text which would be classed as "the fine print" or "the small print".
u Now indicates text that would be normally underlined in a written work - previously only presentational in HTML4.