The power of ALT and LANG attributes

Reinaldo Ferraz
Reinaldo FerrazWeb Development Specialist at W3C Escritório Brasil - W3C Brazil Office em W3C Escritório Brasil - W3C Brazil Office
The power of
ALT and LANG Attributes
Reinaldo Ferraz #id242018
@reinaldoferraz
The power of ALT and LANG attributes
The power of ALT and LANG attributes
<img src=“#” alt=“Picture of a train”>
<html lang=“pt-BR”>
<img src=“#” alt=“Picture of a train”>
<html lang=“pt-BR”>
alt
alt
https://www.w3.org/TR/html5/semantics-embedded-content.html#alt-text
The alt attribute on images is a very important accessibility attribute. Authoring
useful alt attribute content requires the author to carefully consider the context
in which the image appears and the function that image may have in that
context.
http://1997.webhistory.org/www.lists/www-talk.1993q1/0182.html
http://1997.webhistory.org/www.lists/www-html.1995q2/0128.html
accessibility
<img src="foto.jpg" alt=“keyboard keys
W, 3 and C" />
<img src=“foto.jph” alt="keyboard keys W,
3 and C" />
Picture of
the
keyboard
keys W, 3
and C
Best practices to describe images:
- Avoid “Picture of” or “image of”
- Do not use long sentences
<img src=“leonie.jpg” alt=“Léonie Watson”> <img src=“book.jpg” alt=“Book”>
<img class="spotlight" alt="The image may contain: Reinaldo Ferraz, smiling, sitting and
drink" aria-busy="false" src="https://scontent-nrt1-1.xx.fbcdn.net/v/t1.0-
9/33922970_10216716265238974_4339601107241140224_n.jpg?_nc_cat=0&amp;oh=893330091d9d196e
6514e54bad3452ae&amp;oe=5C1B2A7B" style="width: 2048px; height: 1536px;">
ePub accessibility
<ops:switch id="XHTMLServerSideSwitch"
xmlns:ops="http://www.idpf.org/2007/ops">
<ops:case required-namespace="http://www.w3.org/1999/xhtml"
required-modules="server-side-image-map">
<a href="http://www.example.com/examplemap.map">
<img src="example.gif" ismap="ismap"
title="Example Map"
alt="A picture of an example." />
</a>
</ops:case>
</ops:switch>
http://www.idpf.org/epub/20/spec/OPS_2.0.1_draft.htm
acessibilidadeSEO
http://ceweb.br/media/docs/publicacoes/19/acessibilidade-exploring-web-attributes.pdf
https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=8279605
<img src="http://www.reinaldoferraz.com.br/wp-
content/uploads/2014/02/tr47ujhtt767.png"
alt="Foto de um pão francês em um prato branco"
title="A foto do pão é a primeira a utilizar o atributo title
nesse post“>
<img src="http://www.reinaldoferraz.com.br/wp-
content/uploads/2014/02/aswe98jdk93.png"
alt="Foto de uma ampulheta"
title="A foto da ampulheta é de autoria de Reinaldo Ferraz">
<img src="http://www.reinaldoferraz.com.br/wp-
content/uploads/2014/02/yjjl9675yp.png"
alt="Foto de uma placa com o mapa do zoológico de São Paulo"
title="Crédito desta foto: Reinaldo Ferraz">
The power of ALT and LANG attributes
The power of ALT and LANG attributes
Google Yahoo Bing Duck Duck Go
ALT Yes No No No
TITLE No No No No
https://www.site-analyzer.com/
https://www.woorank.com/pt
http://www.seoworkers.com/
Performed in March 2014
The power of ALT and LANG attributes
The power of ALT and LANG attributes
The power of ALT and LANG attributes
The power of ALT and LANG attributes
The power of ALT and LANG attributes
The power of ALT and LANG attributes
Site Analyzer Woorank SEO Workers
ALT Yes Yes Yes
TITLE No No No
<p>A imagem abaixo é a foto de um rádio relógio cinza.</p>
<p>A imagem acima é uma foto de um despertador digital.</p>
<img src="http://www.reinaldoferraz.com.br/wp-content/uploads/2014/02/2016-02-19-
17.51.23.jpg" alt="" >
The power of ALT and LANG attributes
The power of ALT and LANG attributes
The power of ALT and LANG attributes
<div class="foto"
role="img" aria-label=“Company logo">
</div>
lang
lang
https://www.w3.org/TR/html5/dom.html#the-lang-and-xmllang-attributes
The lang attribute (in no namespace) specifies the primary language for the
element’s contents and for any of the element’s attributes that contain text.
Global Attribute
accesskey
class
contenteditable
dir
hidden
id
lang
spellcheck
style
tabindex
title
translate
<html lang=“pt-BR”>
.....
<p>
O texto da página está em português
<span lang=“en”>and in english</span>.
</p>
http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
The power of ALT and LANG attributes
The power of ALT and LANG attributes
accessibility
Is this the real life?
Is this just fantasy?
Caught in a landslide
No escape from reality
Is dis de real life?
Is dis just fantasi?
Cauti in a landslide
No escape from reality
The power of ALT and LANG attributes
styling
body {
font-family:
"Times New Roman", Times, serif;
}
:lang(ar) {
font-family:
"Traditional Arabic", "Al Bayan", serif;
direction: rtl;
}
<div lang=“en“ class=“hello”>
Hello World!
</div>
<div lang="pt-BR" class=“hello”>
Olá Mundo!
</div>
<div lang=“fr" class=“hello”>
Salut, Monde!
</div>
.love {
padding: 1em;
}
.love:lang(en) {
background-color: green;
color:white;
}
.love:lang(pt-BR) {
background-color: yellow;
}
.love:lang(fr) {
background-color: blue;
color:white;
}
Hyphenation
p { hyphens: auto;}
<p>Este é um texto sobre ontologia</p>
<p lang="pt-br">
Este é um texto sobre ontologia</p>
The power of ALT and LANG attributes
Just sumarizing:
Use
ALT e LANG
Attributus in your web project
Thank you
reinaldo@nic.br @reinaldoferraz
1 de 56

Recomendados

Simplifying build scripts with Gradle por
Simplifying build scripts with GradleSimplifying build scripts with Gradle
Simplifying build scripts with GradleSaager Mhatre
1.7K visualizações43 slides
Gordian Knot Presentation (Help Network) por
Gordian Knot Presentation (Help Network)Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)Jim Osowski
998 visualizações15 slides
The Structure of Web Code: A Case For Polymer, November 1, 2014 por
The Structure of Web Code: A Case For Polymer, November 1, 2014The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014Tommie Gannert
816 visualizações60 slides
An Introduction To HTML5 por
An Introduction To HTML5An Introduction To HTML5
An Introduction To HTML5Robert Nyman
21.9K visualizações96 slides
HTML5 por
HTML5HTML5
HTML5Brad Touesnard
1.1K visualizações80 slides
Microdata semantic-extend por
Microdata semantic-extendMicrodata semantic-extend
Microdata semantic-extendSeek Tan
507 visualizações18 slides

Mais conteúdo relacionado

Similar a The power of ALT and LANG attributes

HTML5, The Open Web, and what it means for you - Altran por
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranRobert Nyman
6.4K visualizações85 slides
HTML5 workshop, part 1 por
HTML5 workshop, part 1HTML5 workshop, part 1
HTML5 workshop, part 1Robert Nyman
5.7K visualizações66 slides
Speak The Web: The HTML5 Experiments por
Speak The Web: The HTML5 ExperimentsSpeak The Web: The HTML5 Experiments
Speak The Web: The HTML5 Experimentsguestd427df
701 visualizações27 slides
HTML5: Markup Evolved por
HTML5: Markup EvolvedHTML5: Markup Evolved
HTML5: Markup EvolvedBilly Hylton
485 visualizações28 slides
Presentation html5 css3 by thibaut por
Presentation html5 css3 by thibautPresentation html5 css3 by thibaut
Presentation html5 css3 by thibautThibaut Baillet
1.4K visualizações20 slides
Introduction to web components por
Introduction to web componentsIntroduction to web components
Introduction to web componentsMarc Bächinger
2.4K visualizações80 slides

Similar a The power of ALT and LANG attributes(20)

HTML5, The Open Web, and what it means for you - Altran por Robert Nyman
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - Altran
Robert Nyman6.4K visualizações
HTML5 workshop, part 1 por Robert Nyman
HTML5 workshop, part 1HTML5 workshop, part 1
HTML5 workshop, part 1
Robert Nyman5.7K visualizações
Speak The Web: The HTML5 Experiments por guestd427df
Speak The Web: The HTML5 ExperimentsSpeak The Web: The HTML5 Experiments
Speak The Web: The HTML5 Experiments
guestd427df701 visualizações
HTML5: Markup Evolved por Billy Hylton
HTML5: Markup EvolvedHTML5: Markup Evolved
HTML5: Markup Evolved
Billy Hylton485 visualizações
Presentation html5 css3 by thibaut por Thibaut Baillet
Presentation html5 css3 by thibautPresentation html5 css3 by thibaut
Presentation html5 css3 by thibaut
Thibaut Baillet1.4K visualizações
Introduction to web components por Marc Bächinger
Introduction to web componentsIntroduction to web components
Introduction to web components
Marc Bächinger2.4K visualizações
Using HTML5 for a great Open Web por Robert Nyman
Using HTML5 for a great Open WebUsing HTML5 for a great Open Web
Using HTML5 for a great Open Web
Robert Nyman9K visualizações
Bilder einbinden ist kein Thema, oder? por Walter Ebert
Bilder einbinden ist kein Thema, oder?Bilder einbinden ist kein Thema, oder?
Bilder einbinden ist kein Thema, oder?
Walter Ebert1.9K visualizações
E2 appspresso hands on lab por NAVER D2
E2 appspresso hands on labE2 appspresso hands on lab
E2 appspresso hands on lab
NAVER D2945 visualizações
E3 appspresso hands on lab por NAVER D2
E3 appspresso hands on labE3 appspresso hands on lab
E3 appspresso hands on lab
NAVER D2399 visualizações
Atomic design con pattern lab por UX Nights
Atomic design con pattern labAtomic design con pattern lab
Atomic design con pattern lab
UX Nights329 visualizações
Vidéo approche en immobilier por hervepouliot
Vidéo approche en immobilierVidéo approche en immobilier
Vidéo approche en immobilier
hervepouliot1K visualizações
网站无障碍阅读知识 por ppanyong
网站无障碍阅读知识网站无障碍阅读知识
网站无障碍阅读知识
ppanyong160 visualizações
网站无障碍阅读知识 por ppanyong
网站无障碍阅读知识网站无障碍阅读知识
网站无障碍阅读知识
ppanyong357 visualizações
An Introduction to HTML5 por Steven Chipman
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
Steven Chipman7.3K visualizações
Smx Milano 2014 Semantic SEO with Schema.org por Sante J. Achille
Smx Milano 2014 Semantic SEO with Schema.orgSmx Milano 2014 Semantic SEO with Schema.org
Smx Milano 2014 Semantic SEO with Schema.org
Sante J. Achille2.2K visualizações
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012 por crokitta
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
crokitta1.7K visualizações
Espacios en-tu-vida por epacheco1
Espacios en-tu-vidaEspacios en-tu-vida
Espacios en-tu-vida
epacheco11.1K visualizações
Diseño de Sistemas de Diseño con Atomic Design y Pattern Lab por Mauricio Angulo Sillas
Diseño de Sistemas de Diseño con Atomic Design y Pattern LabDiseño de Sistemas de Diseño con Atomic Design y Pattern Lab
Diseño de Sistemas de Diseño con Atomic Design y Pattern Lab
Mauricio Angulo Sillas553 visualizações
Seo cheat sheet_2-2013 por ekkarthik
Seo cheat sheet_2-2013Seo cheat sheet_2-2013
Seo cheat sheet_2-2013
ekkarthik372 visualizações

Mais de Reinaldo Ferraz

Acessibilidade na Web - Muito além do código por
Acessibilidade na Web - Muito além do códigoAcessibilidade na Web - Muito além do código
Acessibilidade na Web - Muito além do códigoReinaldo Ferraz
32 visualizações45 slides
WCAG 2.2 e 3.0 por
WCAG 2.2 e 3.0WCAG 2.2 e 3.0
WCAG 2.2 e 3.0Reinaldo Ferraz
259 visualizações42 slides
Legendas na Web por
Legendas na WebLegendas na Web
Legendas na WebReinaldo Ferraz
313 visualizações55 slides
WCAG 2.2 por
WCAG 2.2WCAG 2.2
WCAG 2.2Reinaldo Ferraz
314 visualizações39 slides
Por que re-descentralizar a Web? por
Por que re-descentralizar a Web?Por que re-descentralizar a Web?
Por que re-descentralizar a Web?Reinaldo Ferraz
296 visualizações38 slides
Passado, presente e futuro da acessibilidade na web por
Passado, presente e futuro da acessibilidade na webPassado, presente e futuro da acessibilidade na web
Passado, presente e futuro da acessibilidade na webReinaldo Ferraz
468 visualizações35 slides

Mais de Reinaldo Ferraz(20)

Acessibilidade na Web - Muito além do código por Reinaldo Ferraz
Acessibilidade na Web - Muito além do códigoAcessibilidade na Web - Muito além do código
Acessibilidade na Web - Muito além do código
Reinaldo Ferraz32 visualizações
WCAG 2.2 e 3.0 por Reinaldo Ferraz
WCAG 2.2 e 3.0WCAG 2.2 e 3.0
WCAG 2.2 e 3.0
Reinaldo Ferraz259 visualizações
Legendas na Web por Reinaldo Ferraz
Legendas na WebLegendas na Web
Legendas na Web
Reinaldo Ferraz313 visualizações
WCAG 2.2 por Reinaldo Ferraz
WCAG 2.2WCAG 2.2
WCAG 2.2
Reinaldo Ferraz314 visualizações
Por que re-descentralizar a Web? por Reinaldo Ferraz
Por que re-descentralizar a Web?Por que re-descentralizar a Web?
Por que re-descentralizar a Web?
Reinaldo Ferraz296 visualizações
Passado, presente e futuro da acessibilidade na web por Reinaldo Ferraz
Passado, presente e futuro da acessibilidade na webPassado, presente e futuro da acessibilidade na web
Passado, presente e futuro da acessibilidade na web
Reinaldo Ferraz468 visualizações
WCAG 2.1 por Reinaldo Ferraz
WCAG 2.1WCAG 2.1
WCAG 2.1
Reinaldo Ferraz536 visualizações
Re-descentralizar a web por Reinaldo Ferraz
Re-descentralizar a webRe-descentralizar a web
Re-descentralizar a web
Reinaldo Ferraz160 visualizações
Quando e como usar WAI-ARIA por Reinaldo Ferraz
Quando e como usar WAI-ARIAQuando e como usar WAI-ARIA
Quando e como usar WAI-ARIA
Reinaldo Ferraz729 visualizações
Accessibility on SVG and SEO por Reinaldo Ferraz
Accessibility on SVG and SEOAccessibility on SVG and SEO
Accessibility on SVG and SEO
Reinaldo Ferraz627 visualizações
Technological study of Brazilian government websites por Reinaldo Ferraz
Technological study of Brazilian government websitesTechnological study of Brazilian government websites
Technological study of Brazilian government websites
Reinaldo Ferraz129 visualizações
WCAG 2.1 por Reinaldo Ferraz
WCAG 2.1WCAG 2.1
WCAG 2.1
Reinaldo Ferraz841 visualizações
Acessibilidade na web por Reinaldo Ferraz
Acessibilidade na webAcessibilidade na web
Acessibilidade na web
Reinaldo Ferraz306 visualizações
Aplicações em HTML5 para interação com a TV Digital por Reinaldo Ferraz
Aplicações em HTML5 para interação com a TV DigitalAplicações em HTML5 para interação com a TV Digital
Aplicações em HTML5 para interação com a TV Digital
Reinaldo Ferraz708 visualizações
HTML Acessível por Reinaldo Ferraz
HTML AcessívelHTML Acessível
HTML Acessível
Reinaldo Ferraz1.3K visualizações
Alt e Lang: Dois atributos da pesada por Reinaldo Ferraz
Alt e Lang: Dois atributos da pesadaAlt e Lang: Dois atributos da pesada
Alt e Lang: Dois atributos da pesada
Reinaldo Ferraz2.4K visualizações
Acessibilidade na Web: Construíndo páginas para pessoas e não só para máquinas por Reinaldo Ferraz
Acessibilidade na Web: Construíndo páginas para pessoas e não só para máquinasAcessibilidade na Web: Construíndo páginas para pessoas e não só para máquinas
Acessibilidade na Web: Construíndo páginas para pessoas e não só para máquinas
Reinaldo Ferraz1.4K visualizações
Atributos textuais para imagens e SEO por Reinaldo Ferraz
Atributos textuais para imagens e SEOAtributos textuais para imagens e SEO
Atributos textuais para imagens e SEO
Reinaldo Ferraz725 visualizações
ALT and TITLE attributes in images and SEO por Reinaldo Ferraz
ALT and TITLE attributes in images and SEOALT and TITLE attributes in images and SEO
ALT and TITLE attributes in images and SEO
Reinaldo Ferraz1.3K visualizações
Web das Coisas - Que tal fazer coisas que sejam realmente úteis? por Reinaldo Ferraz
Web das Coisas - Que tal fazer coisas que sejam realmente úteis?Web das Coisas - Que tal fazer coisas que sejam realmente úteis?
Web das Coisas - Que tal fazer coisas que sejam realmente úteis?
Reinaldo Ferraz1K visualizações

Último

Amine el bouzalimi por
Amine el bouzalimiAmine el bouzalimi
Amine el bouzalimiAmine EL BOUZALIMI
5 visualizações38 slides
hamro digital logics.pptx por
hamro digital logics.pptxhamro digital logics.pptx
hamro digital logics.pptxtupeshghimire
11 visualizações36 slides
How to think like a threat actor for Kubernetes.pptx por
How to think like a threat actor for Kubernetes.pptxHow to think like a threat actor for Kubernetes.pptx
How to think like a threat actor for Kubernetes.pptxLibbySchulze1
7 visualizações33 slides
Affiliate Marketing por
Affiliate MarketingAffiliate Marketing
Affiliate MarketingNavin Dhanuka
20 visualizações30 slides
The Dark Web : Hidden Services por
The Dark Web : Hidden ServicesThe Dark Web : Hidden Services
The Dark Web : Hidden ServicesAnshu Singh
19 visualizações24 slides
Marketing and Community Building in Web3 por
Marketing and Community Building in Web3Marketing and Community Building in Web3
Marketing and Community Building in Web3Federico Ast
15 visualizações64 slides

Último(10)

hamro digital logics.pptx por tupeshghimire
hamro digital logics.pptxhamro digital logics.pptx
hamro digital logics.pptx
tupeshghimire11 visualizações
How to think like a threat actor for Kubernetes.pptx por LibbySchulze1
How to think like a threat actor for Kubernetes.pptxHow to think like a threat actor for Kubernetes.pptx
How to think like a threat actor for Kubernetes.pptx
LibbySchulze17 visualizações
Affiliate Marketing por Navin Dhanuka
Affiliate MarketingAffiliate Marketing
Affiliate Marketing
Navin Dhanuka20 visualizações
The Dark Web : Hidden Services por Anshu Singh
The Dark Web : Hidden ServicesThe Dark Web : Hidden Services
The Dark Web : Hidden Services
Anshu Singh19 visualizações
Marketing and Community Building in Web3 por Federico Ast
Marketing and Community Building in Web3Marketing and Community Building in Web3
Marketing and Community Building in Web3
Federico Ast15 visualizações
ATPMOUSE_융합2조.pptx por kts120898
ATPMOUSE_융합2조.pptxATPMOUSE_융합2조.pptx
ATPMOUSE_융합2조.pptx
kts12089835 visualizações
cis5-Project-11a-Harry Lai por harrylai126
cis5-Project-11a-Harry Laicis5-Project-11a-Harry Lai
cis5-Project-11a-Harry Lai
harrylai1269 visualizações
WITS Deck por W.I.T.S.
WITS DeckWITS Deck
WITS Deck
W.I.T.S.18 visualizações

The power of ALT and LANG attributes