Green underline in VS 2017
Hello
I am getting a green underline error in VS2017 with this line of code:
Code:
<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.
Re: Green underline in VS 2017
Quote:
Originally Posted by
SteveHi
Isn't my line of code followed by an equals (=) sign with matching quotation marks?
There is an equals sign with matching quotation marks, but that is for class... there isn't a value at all for data-scroll
I haven't used data-scroll before, and a quick web search didn't give anything worthwhile... what were you intending there?
Re: Green underline in VS 2017
It depends. Visual Studio will often give strange warning for html that are "fake". So if you are using this (I also do not know what is it) and it works then ignore the underline.