SóProvas


ID
1309804
Banca
CESPE / CEBRASPE
Órgão
ANTAQ
Ano
2014
Provas
Disciplina
Programação
Assuntos

Acerca da HTML5, julgue o item subsequente.


A utilização simultânea dos atributos multiple e required no elemento input permite que o usuário especifique mais de um valor, devendo inserir ao menos um valor.

Alternativas
Comentários
  • When present, it specifies that the user is allowed to enter more than one value in the <input> element.


  • De acordo com o W3Schools, o atributo multiple funciona com os inputs do tipo email e file.

    Fonte: http://www.w3schools.com/tags/att_input_multiple.asp

  • Questão CORRETA

    O atributo MULTIPLE permite que múltiplos valores sejam inseridos em um input, e o required exige que ao menos um seja inserido.

    Combinando os 2, eis que chegamos na descrição da questão: Multiplos valores PODEM ser inserios, mas no mínimo 1 valor DEVE ser inserido.

  • The multiple attribute specifies that the user is allowed to enter more than one value in the element.

    The multiple attribute works with the following input types: email, and file.

    Example

    A file upload field that accepts multiple values:

    Select images: 

     

    The required attribute specifies that an input field must be filled out before submitting the form.

    The required attribute works with the following input types: text, search, url, tel, email, password, date pickers, number, checkbox, radio, and file.

    Example

    A required input field:

    Username: 

     

    https://www.w3schools.com/html/html_form_attributes.asp