Computer Science, asked by sunitazirange, 7 months ago

tell me the difference between div and article tag in html give me an example from day to day life comparing both div and article tag in html what function do they perform?

Answers

Answered by Imblank
1

Explanation:

div has no specific meaning it is a simple box which can be placed anywhere I can put a div inside a footer tag

but

article tag must be inside a section tag to keep things organized you can't keep it anywhere I can't put an article inside a footer

Brainliest Please

Answered by archanamittal9111985
1

Explanation:

The < div > tag defines a decision or a section in an HTML document . The < div > tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript . The < div > tag is easily styled by using the class or I'd attribute .

Example - heading , paragraph , forms etc .

the article tag

The HTML < article > element represents a self - contained composition in a document , page , application or site which is intended to be independently distributable or reusable .

Example - a forum post , a magazine or newspaper , or a blog entry .

Hope it will help you

Similar questions