Create a New Folder: Start by creating a new folder on your computer. Name it something like "ChatBotProject".
HTML Setup: Inside the folder, create a new file named index.html
. Open this file using your code editor.
Basic HTML Structure: Add the following code to your index.html
file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChatBot Demo</title>
</head>
<body>
<div id="chat-container">
<div id="chat-log"></div>
<input type="text" id="user-input" placeholder="Type your message...">
</div>
<script src="script.js"></script>
</body>
</html>