-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dotted underline link technique and working example
- Loading branch information
Showing
2 changed files
with
80 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Allowing for text spacing without wrapping</title> | ||
<style> | ||
body { | ||
color: #111111; | ||
} | ||
|
||
a { | ||
color: #4D6BD5; | ||
text-decoration: underline dotted; | ||
} | ||
|
||
.solid a { | ||
text-decoration: underline solid; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<h1>Links with <a href="https://example.com/">dotted underlines</a> and colors that provides contrast ratio of 3:1 in wiki pages</h1> | ||
|
||
<p> | ||
Use of Color a <a href="https://example.com/">relative luminance</a> difference of 3:1 or greater with the text around can be used to identify links and surrounding texts. | ||
To meet <a href="https://example.com/">success criterion 1.4.1: Use of Color</a>, use dotted lines as additional visual cue. | ||
</p> | ||
|
||
<p> | ||
This technique is an alternative to use <a href="https://example.com/">solid underlines</a>. | ||
Solid underlines might be visually distracting for pages there are <a href="https://example.com/">a large number of links</a> in the block of text. | ||
Links are commonly used to indicate <a href="https://example.com/">words</a> or <a href="https://example.com/">phrases</a> that are links within a paragraph or other block of text. | ||
Even using underlines on <a href="https://example.com/">hover</a> or <a href="https://example.com/">keyboard focus</a> only, they might not be used for users with <a href="https://example.com/">touch devices</a>. | ||
</p> | ||
|
||
<div class="solid"> | ||
<h2>If the links on this page are changed to <a href="https://example.com/">solid underline</a>...</h2> | ||
|
||
<p> | ||
Use of Color a <a href="https://example.com/">relative luminance</a> difference of 3:1 or greater with the text around can be used to identify links and surrounding texts. | ||
To meet <a href="https://example.com/">success criterion 1.4.1: Use of Color</a>, use dotted lines as additional visual cue. | ||
</p> | ||
|
||
<p> | ||
This technique is an alternative to use <a href="https://example.com/">solid underlines</a>. | ||
Solid underlines might be visually distracting for pages there are <a href="https://example.com/">a large number of links</a> in the block of text. | ||
Links are commonly used to indicate <a href="https://example.com/">words</a> or <a href="https://example.com/">phrases</a> that are links within a paragraph or other block of text. | ||
Even using underlines on <a href="https://example.com/">hover</a> or <a href="https://example.com/">keyboard focus</a> only, they might not be used for users with <a href="https://example.com/">touch devices</a>. | ||
</p> | ||
</div> | ||
</body> | ||
</html> |