What is the difference between an attribute and parameter in HTML?
Answers
Answered by
3
Attribute and parameter are two terms associated with programming. The difference between attribute and parameter is that an attribute is a variable of any type that is declared directly in a class while a parameter is a variable defined by the function that receives a value when it is called.
Answered by
4
Answer:
- Attributes are objects that are attached to various scopes and can be modified, retrieved or removed.
- Parameters are read only, attributes are read/write objects. Parameters are String objects, attributes can be objects of any type.
Hope it helps :)
Similar questions