dcsimg
Results 1 to 3 of 3

Thread: Green underline in VS 2017

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2014
    Posts
    416

    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.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    40,118

    Re: Green underline in VS 2017

    Quote Originally Posted by SteveHi View Post
    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?

  3. #3
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    5,322

    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.
    Slow as hell.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width