Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

Attributes without values

$
0
0
This is more an HTML question than ASP.NET, but since there's no HTML forum (and the answers I've gotten from google are not helpful) here goes:
 
I see this a lot (example from Foundation):
 
<nav class="top-bar" data-topbar&lt/nav>
 
data-topbar is invalid XML because it has no value (no ='')
 
Is this some bizarre shortcut that only HTML understands? What if I assign a value like an empty string?
 
I see this frequently in javascript libraries, it's not something exclusive to Foundation.
 
Thoughts?
 
Marc

Viewing all articles
Browse latest Browse all 3938

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>