423,311 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,311 IT Pros & Developers. It's quick & easy.

Error: attribute name must be followed by an equals (=) sign and a value

P: 47
Hello

I am getting a green underline error in VS2017 with this line of code:

Expand|Select|Wrap|Line Numbers
  1. <a data-scroll class="btn btn-start animated fadeInUpBig" href="#services">Start now</a>
The underline is under 'data-scroll' with the following error: 'This attribute name must be followed by an equals (=) sign and a value. If the value is in quotation marks, the quotation marks must match'.

Isn't my line of code followed by an equals (=) sign with matching quotation marks?

Thank you.
Jun 20 '18 #1
Share this Question
Share on Google+
2 Replies


Rabbit
Expert Mod 10K+
P: 12,248
Isn't my line of code followed by an equals (=) sign with matching quotation marks?
Nope. It's followed by a different attribute, class.

Like the error message says, you need to follow it with the equals sign and a value.
<a data-scroll="some value" class="...
Jun 20 '18 #2

P: 47
Many thanks for that Rabbit!
Jul 5 '18 #3

Post your reply

Sign in to post your reply or Sign up for a free account.