Favicon and audio not working

Asked

Viewed 42 times

0

This is the code:

<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta name="author" content="Tomás Ricardo">
<audio autoplay>
<source src="audio_de_erro.mp3" type="audio/mpeg">
<source src="audio_de_erro.ogg" type="audio/ogg">
<source src="audio_de_erro.wav" type="audio/wav">
Seu navegador não suporta áudio. Atualize ou troque de navegador.
</audio>
<link rel="stylesheet" href="../../../estilo.css" type="text/css">
<link rel="shortcut icon" href="../../../imagens/favicon.png" type="image/x-png">
<title>Errado</title>
<meta charset="utf-8">
</head>
<body class="tela_de_erro">
<h1>errô!</h1><br><a href="javascript:window.history.go(-1)">Voltar</a>
</body>
</html>

The strange thing is that the.css style is being loaded. I’ve tried everything, clear the cache, change the order of the attributes, but nothing works! Anybody know what to do? This audio would be the "WRONG" of Faustão.

  • For favicon, try to take the shortcut from your link rel, just let rel="icon". For audio, it is possible that the page is not finding the audio file, tries to make a link in the middle of the page pointing to the audio file and tries to download that file, to see if it is not a problem of access / directories.

  • Dude, your html is really messed up. The audio tag ta inside the head, puts on the body, has meta tag here then tag link after meta tag again.

  • Thank you, Leandro, I put the audio in the body and favicon simply uploaded! But the audio is not yet going in Chrome, but works in Firefox and IE. Why not go in Chrome?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.