what is HTML Attributes ?
HTML Attributes
- All HTML elements can have attributes
- The
hrefattribute of<a>specifies the URL of the page the link goes to - The
srcattribute of<img>specifies the path to the image to be displayed - The
widthandheightattributes of<img>provide size information for images - The
altattribute of<img>provides an alternate text for an image - The
styleattribute is used to add styles to an element, such as color, font, size, and more - The
langattribute of the<html>tag declares the language of the Web page - The
titleattribute defines some extra information about an element



Comments
Add new comment