Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
Screen reader: Read DOM structure then focus

I have a simple web based text adventure which could be played using a screen reader. What I want is that when I navigate to the next page the content is read in DOM structure and then the focus is set to the button. So it should read the title, text and buttons. When I use the screen reader the focus then should be on the first button so that I don't have to navigate through the whole page to get to the button. Is this possible?

Here is a really simple example of what I have:

* {
  box-sizing: border-box;
}

html, body, tw-passage, aside, .container {
  height: 100%;
}

a {
  cursor: pointer;
  text-decoration: underline;
}


body {
  margin: 0;
}

div, p {
  text-align: center;
}

.title {
  font-size: 2em;
  line-height: 1em;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container div:nth-of-type(2) {
  display: flex;
  flex-flow: row wrap;
  overflow: scroll;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.contentImg {
  max-height: 50vh;
  max-width: 100%;
  margin-bottom: 10px;
}

.content {
  order: 2;
  display: flex;
  flex-direction: column;
}

.content a {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee;
  padding: 10px;
  margin: 5px;
}

.content p {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
<main class="container">
  <div id="title_Start" class="title">Title</div>
  <div>
    <span class="content">
      <span id="content_Start" class="LANG">
        Text...
      </span>
      <span class="choices">
        <a>Link 1</a>
        <a>Link 2</a>
      </span>
    </span>
      <img class="contentImg" src="https://www.pngkey.com/png/detail/233-2332677_image-500580-placeholder-transparent.png"/>
  </div>
</main>

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda