Computer Science, asked by advikbhat03, 6 months ago

What is the difference between an attribute and parameter in HTML?

Answers

Answered by sam7738
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 Anonymous
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