Bundle several pieces of data together into one
- properties (also known as attributes, data)
- methods (also known as functions, actions)
Examples:
HTML view <p id='par1'>
A short paragraph.
</p><img id='img1'
src='myPic.jpg'
height='100'><html>
…
</html>JavaScript view paragraph.id
paragraph.innerHTML
paragraph.style
paragraph.style.coloranImage.id
anImage.src
anImage.height
anImage.width
anImage.onclick
anImage.click(…)document.lastModified
document.writeln(…)