HTML - Attributes

HTML Attributes

HTML Attributes : provide additional information about HTML elements.
  • HTML elements can have attributes
  • Attributes provide additional information about an element
  • Attributes are always specified in the start tag
  • Attributes come in name/value pairs like: name="value"
Example
<html>
<head>
</head>
<body bgcolor="#c0c0c0">
<h1>This is my first program.</h1>
</body>
</html>