Accessibility enhancements
Not all developers nor all of those who utilize screen readers speak English as their primary language. As such, we should be able to adjust our application accordingly. Doing so is fairly straightforward and we can vastly improve the experience for users of assistive technology around the world by making a small note about the language our content is served in. By default, SvelteKit sets the language to English but we can quickly adjust it by changing the lang
attribute on the <html>
element in src/app.html
:
src/app.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="icon" href="%sveltekit.assets%/favicon.png" /> <meta name="viewport" content="width=device-width...