Imagem de fundo

Qual código HTML com jQuery abaixo irá apresentar...

1
Q2366125
Teclas de Atalhos
Compartilhar
Ano: 2022
Prova: UFPE - UFPE - Técnico de Tecnologia da Informação - Área: Sistemas - 2022

Qual código HTML com jQuery abaixo irá apresentar corretamente um botão que, quando clicado, emitirá um alerta no navegador Web?


A

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Prova UFPE</title>

</head>

<body>

<button id="botaoAlerta" name="Alerta">Exemplo</button>

<script src="jquery-3.6.0.js"></script>

<script>

$("#botaoAlerta").click(function(){

alert('Concurso UFPE!');

})

</script>

</body>

</html>


B

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Prova UFPE</title>

</head>

<body>

<button id="botaoAlerta" name="Alerta">Exemplo</button>

<script src="jquery-3.6.0.js"></script>

<script>

$("botaoAlerta").click(function(){

alert('Concurso UFPE!');

})

</script>

</body>

</html>


C

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Prova UFPE</title>

</head>

<body>

<button id="botaoAlerta" name="Alerta">Exemplo</button>

<script src="jquery-3.6.0.js"></script>

<script>

("#Alerta").click(function(){

alert('Concurso UFPE!');

})

</script>

</body>

</html>


D

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Prova UFPE</title>

</head>

<body>

<button id="botaoAlerta" name="Alerta">Exemplo</button>

<script src="jquery-3.6.0.js"></script>

<script>

$("Alerta").click(function(){

alert('Concurso UFPE!');

})

</script>

</body>

</html>


E

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Prova UFPE</title>

</head>

<body>

<button id="botaoAlerta" name="Alerta">Exemplo</button>

<script src="jquery-3.6.0.js"></script>

<script>

("botaoAlerta").click(function(){

alert('Concurso UFPE!');

})

</script>

</body>

</html>