w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Validation (HTML 5): Attribute 'txt-id' is not valid attribute of element 'a'

If you want it to be "valid" change txt-id to data-txt-id

What you have there isn't a problem so much as it's not "standard" so it won't validate against a formal set of markup rules. In other words... you can leave it if you don't care about seeing green for the sake of seeing green on the validation screen.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.