Attributes are specified in the start tag and provide additional information about HTML elements. Attributes usually come in name/value pairs: name = "value".
class/id
The class attribute is used to specify a class for an HTML element while an id specifies a unique id for an HTML element.
width = "500" height = "500"
href
The href attribute specifies the URL of the webpage the link goes to.
href="https://www.google.com"
src
The src attribute is used to embed an image in an HTML page and specify the path to the image.
src= "img/icon.jpg"
width/height
The width and height attributes are used in the img tag to specify the width and height of an image in pixels.
width = "500" height = "500"
alt
The alt attribute is used in the img tag to specify alternate text for an image in case it can't be displayed.
alt = "Picture of me"
lang
The lang attribute should be included in the html tag to declare the language being used in order to assist browsers.
lang = "en"