What do the empty quotations mean for value?

Viewed 20

Do the empty quotes mean that multiple values can be entered for the value?

<input name="favoriteCities[]" value=""/>
1 Answers

As Nikhil mentioned. It means the value is empty of that input tag.

Run the snippet below to see the difference.

It's pretty simple:

<!DOCTYPE HTML>
<html>

<head></head>

<body>

<p>Input with value:</p>
<input type="text" value="Hi I'm not empty">
<p>Input with empty value:</p>
<input type="text" value="">

</body>

</html>

Related