Professional Documents
Culture Documents
HTML
HTML
HTML
DOCTYPE html>
<html>
<head>
<title>
JavaScript to check leap year
</title>
</head>
<body>
Input Year: <input type="text" id = "year"/>
<p id="GFG"></p>
document.getElementById("GFG").innerHTML
= (year % 100 === 0) ? (year % 400 === 0)
: (year % 4 === 0);
}
</script>
<!DOCTYPE html>
<html>
<head>
<title>My first web page</title>
</head>
<body>
<h1>My first web page</h1>
<h2>Lists</h2>
<ul>
<li>To learn HTML</li>
<li>To show off</li>
<li>Because I've fallen in love with my computer and want to
</html>