September 2018
Intermediate to advanced
266 pages
7h 26m
English
To start, we need an HTML page to build upon. The three components that we need to start are a message area, a typing input box, and a send button. Create a folder with an index.html file inside and we can add this code to that file:
<!DOCTYPE html><html lang="en"><head> <link rel="stylesheet" href="./style.css"></head><body> <div id="messageArea"></div> <div id="inputDivs"> <input type="text" id="textInput"> <button id="sendButton">Send</button> </div></body><script src="https://unpkg.com/axios/dist/axios.min.js"></script><script src="./script.js"></script></html>
This is a simple HTML file that has a CSS link in the header so we can style our page, the message area, input box and button, and two scripts. The first of these scripts ...
Read now
Unlock full access