which of the following are not the attribute of a tag a. name b. title c. href d. src
Answers
The (a) name is not an attribute of a tag.
Every HTML elements can have attributes which provide extra information about an element. Some examples of attributes are :-
1) href attribute : Some HTML attributes are specified with the <a> tag. The link address is mentioned in the href attribute.
2) src attribute : HTML images are specified with the <img> tag. The file name of the image source is mentioned in the src attribute.
3) title attribute : A title attribute is added to the <p> element.
Answer:
The answer is the name out of all 4 options. name is not the attribute of a tag. The name attribute stipulates a name for the component. This name attribute can be used to reference the component in a JavaScript.
For form elements it is also applied as a reference when the data is finally submitted, for iframe element it can also be applied to mark a form submission.
Explanation: