<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"…
- Usercode
.container { text-align: center; background-color: #1c2938; padding: 50px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } h1 { color: #fff; margin-bottom: 30px; } button { background-color: #0a141f; color: #fff; padding: 15px 30px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; margin: 10px; transition: background-color 0.3s ease; } button:hover { background-color: #06101a; } p{ color:white; font-weight:bold; } input{ font-family:Poppins; } #not{ color:rgba(245,245,245,0.2); } </style>codevar xhr = new XMLHttpRequest(); xhr.open('POST', 'yeniKonu.php', true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function() { if (xhr.status === 200) { alert(xhr.responseText); }else{ alert(xhr.responseText); }; xhr.send('quiz_adresi=' + encodeURIComponent(quizİsim)); }; }; </script>bu sayfadaki hata nedir
- Assistant
Bu HTML dosyasında bazı hatalar bulunmaktadır:
-
<input>ve<script>etiketlerinde hatalı bir özellik kullanımı: İlgili HTML dosyasındaki<input>etiketindeid="quizİsim"kullanılmıştır.iddeğerlerinde Türkçe karakterler ve büyük harfler kullanmak HTML standartlarına aykırı değildir ancak genellikleiddeğerlerinin küçük harflerle ve ASCII karakter setini kullanacak şekilde oluşturulması önerilir. Bu, çeşitli diller ve sistemlerde daha tutarlı bir kullanım sağlar. Örneğin, yerine kullanabilirsiniz.
-