user2340266
user2340266

Reputation: 33

Adding multiple values for a single attribute in HTML

I just got this map that uses this line:

<li  title="restaurant" id="restaurant" name="japanese">Japanese Restaurant</li>

to search show all places that has the keyword "Japanese" in it's name. What I want is to add one or more keywords into the string. The following WRONG code gives you an idea what I mean:

<li  title="restaurant" id="restaurant" name="japanese+sushi">Japanese Restaurant</li>

I'm wondering if this is possible somehow? Thanks

Upvotes: 0

Views: 184

Answers (1)

dsgriffin
dsgriffin

Reputation: 68596

No, it is not possible. Also, name is not a valid attribute for a li.

See more about which attributes are allowed on a li element here.

Upvotes: 1

Related Questions