Questions? Hit me up: @Tayokoart
Last active
December 27, 2015 19:59
-
-
Save miguel-perez/7380585 to your computer and use it in GitHub Desktop.
A Pen by Miguel Angel Perez.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> <!-- Setting up the document's encoding. ---> | |
<title>Category</title> | |
</head> | |
<body> | |
<div class="wl-language-select"> | |
<p class="link" href="login-register.html" title="Select Language">Select Language <span class="ico"></span></p> | |
<div class="drop"> | |
<!-- | |
1. List language name in their own language. | |
2. Use lang, dir, and hreflang as needed. | |
3. UTF-8 encoding will allow us to aviod html character escapes. | |
4. Don't lose the user's place on the site when switching languages. | |
---> | |
<ul class="list"> | |
<li class="item"><a href="/index.html" class="link">English</a></li> | |
<li lang="es" class="item"><a href="/es/index.html" hreflang="es" class="link">Español</a></li> | |
<li lang="ja" class="item"><a href="/ja/index.html" hreflang="ja" class="link">日本語</a></li> | |
<li lang="ar" dir="rtl" class="item"><a href="/ar/index.html" hreflang="ar" class="link">العربية</a></li> | |
</ul> | |
</div> | |
</div> | |
</body> | |
</html> |
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
<!-- Avoid html escapes for all non syntaxt or invisible characters --> | |
<ul class="list"> | |
<li class="item"><a href="/en/index.html" class="link">English</a></li> | |
<li class="item"><a href="/es/index.html" class="link">Español</a></li> | |
<li class="item"><a href="/ja/index.html" class="link">日本語</a></li> | |
<li class="item"><a href="/ar/index.html" class="link">العربية</a></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment