Difference between revisions of "Anchor without href"

From Level Access Web Labs
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
<a class="left-off-canvas-toggle menu-icon"><span>test 1</span></a>
+
<div>
<a role="link" class="left-off-canvas-toggle menu-icon"><span>test 2</span></a>
+
  Anchor with no href, no onclick, no tabindex, no role
<a tabindex="0" class="left-off-canvas-toggle menu-icon"><span>test 2</span></a>
+
  <a class="left-off-canvas-toggle menu-icon"><span>test 1</span></a>
<a onclick="alert('test');" class="left-off-canvas-toggle menu-icon"><span>test 2</span></a>
+
</div>
 +
 
 +
<div>
 +
  Anchor with role link with no href, no onclick, no tabindex
 +
  <a role="link" class="left-off-canvas-toggle menu-icon"><span>test 2</span></a>
 +
</div>
 +
 
 +
<div>
 +
  Anchor, tabindex, no href, no role
 +
  <a tabindex="0" class="left-off-canvas-toggle menu-icon"><span>test 3</span></a>
 +
</div>
 +
 
 +
<div>
 +
  Anchor, onclick, no href, no tabindex, no role
 +
  <a onclick="alert('test');" class="left-off-canvas-toggle menu-icon"><span>test 4</span></a>
 +
</div>
 +
 
 +
<div>
 +
  Anchor tabindex and onclick, no role, no href
 +
  <a tabindex="0" onclick="alert('test');" class="left-off-canvas-toggle menu-icon"><span>test 5</span></a>
 +
</div>
 
</html>
 
</html>

Latest revision as of 17:15, 23 April 2020

Anchor with no href, no onclick, no tabindex, no role test 1
Anchor with role link with no href, no onclick, no tabindex test 2
Anchor, tabindex, no href, no role test 3
Anchor, onclick, no href, no tabindex, no role test 4
Anchor tabindex and onclick, no role, no href test 5