What is the purpose of name attribute in html?
Answers
The name attribute helps us in modification of the name of any element in HTML .
ADDITIONAL INFO :-
HTML is the contracted form of Hyper Text Markup Language .
⏩ Example of an attribute is :
< p align = "center" >
ALIGNMENT IS SET TO CENTER .
</p>
⏩ Here <p></p> is the paragraph tag . An attribute is hence used to modify the tags .
⏩ In the example , the align tag was used .
⏩ Here is an example of the name tag being used :
<a name="G">Gunner 4</a>
⏩ The tags are opened with <> and are closed with </> .
⏩ Note that attributes have to be written at the starting of a particular tag . For instance , we need to write align at the starting of <p> .
⏩ There are different types of tags with their respective attributes which should be remembered by an expert coder to attract the readers by making the page eye catching !