+ 1
what are attributes
4 Answers
+ 2
HTML consists of tags.. <p> <h1> <ul> etc..
Most tags can have attributes to control and modify them in order to produce the result that the user wants. Consider this example:
<img src="flower.jpg">
'img' is a tag and 'src' is it's attribute to provide a source, an actual image to show on the page. You can add another attribute to <img>, 'alt' to provide alternative text in case the image doesn't load:
<img src="flower.jpg" alt="A flower">
+ 1
An HTML attribute is a modifier of an HTML element type.
0
They are like mods for html elements.
0
home pr 1st page ko dhyan se learn kr samjh me aa jayega.