What is Elements? 

Elements - every tag is called an element in HTML 


<p>Hello world!</p>
<span>Another HTML Element</span>

What is Attributes?

Attribute is the property or additional information of an element. the attribute is also an element in HTML


<img  src="path" alt="HTML  Tutorial" id="my-img"  class="img">

id and class is also an attribute of the img element. so now you have understood what is an element and what is an attribute in HTML

style Attribute:

The style attribute is used to add styles to an element, such as color, font, size, height, width and more.

<img  src="path" alt="" style="width:100px; height:100px">
<p style="color:green;font-size:20px;">paragraph.</p>

Lang Attribute

define language of the Web page.

<!DOCTYPE html>
<html lang="en">

I hope you will like the tutorial please share it with your friends and family