473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
2 4359
Rabbit
12,516 Expert Mod 8TB
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
Many thanks for that Rabbit!
Jul 5 '18 #3

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

Similar topics

5
by: karen | last post by:
hi, not sure if this is a php issue or an outlook issue or what. trying to send an html message via php, and it looks fine in hotmail, yahoo, and earthlink webmail, but when i receive the same...
3
by: Felix Hebeler | last post by:
Hi all, I am doing some Python scripting for a while, but I'm not too deep into it yet. So I have a problem I can't solve. I need to call an object attribute: value = object.attrName the...
2
by: GIMME | last post by:
For starters .... If : //input is the xpath syntax to see if an element with an attribute named start_date exists ... Then what is the xpath syntax to return elements having
2
by: Moonbeam66 | last post by:
I'm looking to convert an element name to an attribute name, where the element name is user-defined. For example <accountNumber>12345678</accountNumber>. I want to convert this to <userTag...
3
by: Steve | last post by:
Hiya I have a nodeReader object that I am looping through in order to retrieve the values from the attributes, but now I need the attribute name as well, does anyone know how to do this? I will...
6
by: btknorr | last post by:
The following html and javascript combination fails to execute in Internet Explorer...does anyone know why? If you change the input's attribute "name" to anything other than "item" it works just...
5
by: emma_middlebrook | last post by:
Hi I've found the rules that cover what is a valid attribute name here: http://www.w3.org/TR/2006/REC-xml-20060816/ 2.3 Common Syntactic Constructs Is there anything already in the dotnet...
1
by: redgrL86 | last post by:
Hi, I am trying to figure out how to see if any of a given set of childnodes equals a given string. For example, in the XML and XSL code below, I want the text in the "xsl:when" statement to output...
3
by: libish | last post by:
hi all.. can any one help me by suggesting an idea to take the attribute "name" from a node. <r t="error" a="active" i=""> here t , a , i are the attribute name and "error" , "active" , ""...
2
by: tookerello | last post by:
hi, im trying to display the attribute name of the parent node once the input matches a town name: my xml is: <phonebook> <area code="022"> <town>mallow</town> </area> <area...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.