HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML name Attribute

HTML name Attribute

 

 

The name attribute specifies a name for an HTML element. 

 

Uses of name attribute:-

 

  • It is used for reference in JavaScript.
  • For the form element, is used as a reference when data is submitted.
  • For the iframe element, it is used to target form submission.
  • For meta elements, it is used to specify a name for the information of the content attribute.
  • For param element, it is used together with value attribute to specify parameters for the plugin specified with the object tag.

 

Used With:-

 

Elements Attribute
button name
fieldset name
form name
iframe name
input name
map name
meta name
object name
output name
param name
select name
textarea name

 

Syntax:-

 

Its syntax is:- < element name="value" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML