MMDT1021 Chapter 1 Notes - page 1

 

Basic Structure and Definitions

Code Page
<img src="../../filesutilities/cookwoodlogo.jpg" alt="Cookwood Logo" width="55" height="36" />

'img' is a tag.

'src', 'alt', 'width', and 'height' are attributes of the tag 'img'

"../../filesutilities/cookwoodlogo.jpg", "Cookwood Logo", "55", and "36" are values of the respective attributes.

Result
Source

  XHTML changes

Code Page
<img src="../../filesutilities/cookwoodlogo.jpg" alt="Cookwood Logo" width="55" height="36" />

All parts of the tag must be lowercase.  This was not required in plain HTML.

Quotes must enclose all attribute values.  In plain HTML this was usually not necessary except if the value was textual in nature.

Tags that did not normally have a corresponding closing tag, must now be specially formatter with a closing space and slash.

Result
Source