Spaces:
Running

first-demo / index.html
Bhavya-aiml's picture
Update index.html
c74e6bc verified
Raw History Blame Contribute Delete
645 Bytes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Forge AI Demo</title>
<style>
body { font-family: sans-serif; max-width: 500px; margin: 60px auto; text-align: center; }
input, button { padding: 10px; font-size: 16px; margin: 6px; }
</style>
</head>
<body>
<h1>Forge AI</h1>
<input id="name" placeholder="Type your name">
<button onclick="greet()">Say hello</button>
<p id="out"></p>
<script>
function greet() {
const n = document.getElementById("name").value || "friend";
document.getElementById("out").textContent = "Hello " + n + ", welcome to Forge AI!";
}
</script>
</body>
</html>