Move your <script> import into the <head> and make it asynchronous. No need to w
ID: 3604887 • Letter: M
Question
Move your <script> import into the <head> and make it asynchronous. No need to wrap it in a <p>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Weekly News</title>
<meta charset="UTF-8">
<meta content="width=device-width,initial-scale=1.0,shrink-to-fit=no" name="viewport">
<link href="./css/screen.css" media="screen" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+ProSpace+Mono:700" rel="stylesheet">
</head>
<body>
<figure id="background-img">
<img src="img/color.jpg" alt="Background Image ">
</figure>
<h1>Sign Up for our News Letter!</h1>
<h2 class="center">Why Join?</h2>
<ul class="reasons-list">
<li>Weekly news of crimes of Chicago!</li>
<li>Weekly news of recent technology!</li>
<li>Weekly released movies & TV shows!</li>
<li>Please fill in the boxes if you like to get started!</li>
</ul>
<form action="#null" autocomplete="on" class="center inner" id="newsletter" method="get" name="newsletter">
<ol>
<li id="input-email">
<input id="email" name="email" placeholder="you@example.com" type="email"> <input id="name" name="name" placeholder="first name" type="text">
<ul class="reasons-list">
<li>
<div class="checkMidd">
<span class="checkLeft"><input id="age" name="age" type="checkbox"></span> <span class="checkRight">18 years and over:</span> <input id="submit" name="submit" type="submit" value="Register me now!!">
</div>
</li>
</ul>
</li>
</ol>
</form>
<p id="approved">
</p>
<p id="age1">
</p>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" type="text/javascript">
</script><script src="js/site.js" type="text/javascript">
</script>
</body>
</html>
Explanation / Answer
hey fixed it
start from here
<!DOCTYPE html>
<html lang="en">
<head>
<title>Weekly News</title>
<meta charset="UTF-8">
<meta content="width=device-width,initial-scale=1.0,shrink-to-fit=no" name="viewport">
<link href="./css/screen.css" media="screen" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+ProSpace+Mono:700" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" type="text/javascript">
</script>
<script src="js/site.js" type="text/javascript">
</script>
</head>
<body>
<figure id="background-img">
<img src="img/color.jpg" alt="Background Image ">
</figure>
<h1>Sign Up for our News Letter!</h1>
<h2 class="center">Why Join?</h2>
<ul class="reasons-list">
<li>Weekly news of crimes of Chicago!</li>
<li>Weekly news of recent technology!</li>
<li>Weekly released movies & TV shows!</li>
<li>Please fill in the boxes if you like to get started!</li>
</ul>
<form action="#null" autocomplete="on" class="center inner" id="newsletter" method="get" name="newsletter">
<ol>
<li id="input-email">
<label>Email</label>
<input id="email" name="email" placeholder="you@example.com" type="email">
<label>Name</label>
<input id="name" name="name" placeholder="first name" type="text">
<ul class="reasons-list">
<li>
<div class="checkMidd">
<span class="checkLeft"><input id="age" name="age" type="checkbox"></span> <span class="checkRight">18 years and over:</span> <input id="submit" name="submit" type="submit" value="Register me now!!">
</div>
</li>
</ul>
</li>
</ol>
</form>
</body>
</html>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.