HTML Attributes
HTML Attributes
The HTML tags can have the following attributes:
The title attribute is used to provide additional information.
The href attribute is used to provide the URL for a link.
The src attribute is used to provide the URL for a image.
The alt attribute is used to display an alternate text when an image fails to appear on the page.
The width and height attributes are used to set the size of an image.
The style attribute is used add or change an inline CSS style for a HTML tag.
The id attribute is used to set a unique id for an HTML element.
The disabled attribute is used to disable an HTML element.
HTML Attributes
<!DOCTYPE html> <html> <head>HTML Attributes </head> <body>Red Color for a paragraph.
</body> </html>
Result:
Red Color for a paragraph.