Document Object Model

Every tag in a web page is represented by an object. Objects have attributes (sometimes called properties). You have seen these attributes in the tags (e.g. "type", "value", "size", etc.). Javascript has access to these attributes and their values.

You have already used javascript to access the "value" attribute of an Input tag.