Language

HTML Attributes


Attribute play an important role in elements. Attribute increase the functionality of the element and help to control the element in different ways. There are different types of attributes and each has different uses.

HTML Attributes

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
	<a href="https://myschoolhouse.in"> Myschoolhouse </a>
</body>
</html>
                

Attributes List


  • href = " "
  • target = " "
  • src = " "
  • alt = " "
  • style = " "
  • class = " "
  • id = " "
  • title = " "
  • action = " "
  • name = " "
  • type = " "
  • rel = " "
  • width = " "
  • height = " "
  • value = " "