# What are attributes in HTML5? Attributes provide additional information about elements Attributes usually come in name/value pairs like: name="value" Example:-- 1- The <a> tag defines a hyperlink. The href attribute. 2- The <img> tag is used to embed an image in an HTML page. The src attribute 1. Absolute URL - Links to an external image that is hosted on another website. Example: src="https://www.w3schools.com/images/img_girl.jpg". 2. Relative URL-- Links to an image that is hosted within the website. Example: src="img_girl.jpg". If the URL begins with a slash, it will be relative to the domain. Example: src="/images/img_girl.jpg". The four core attributes that can be used on the majority of HTML elements (although not all) are − 1- Id 2- Title 3- Class 4- Style