How to implement a chat window on the website?

The challenge is to write a chat-bot on the website. The chat will be in a separate window, the same as widgets.

And here are a couple of questions:
1)the html Structure/css of the chat should be in a separate file? How it is then to integrate to the site?
2)are There any requirements for chat? I read somewhere that blocks head and body should not be, the same as <!doctype html> because this file will then be added to the ready website.
3)Can throw links in codepen or sample code for such chats.
And thank you
March 23rd 20 at 19:20
1 answer
March 23rd 20 at 19:22
Solution
1) the html Structure/css of the chat should be in a separate file? How it is then to integrate to the site?

-- How convenient, and done. Usually depends on the volume of code and goals. If you do a simple chat to one site, and General styles to push.

2) are There any requirements for chat? I read somewhere that blocks head and body should not be, as well as because this file will then be added to the ready website.

-- This is nonsense. To get code for chat on website with direct hands and full access to source code – no problem. In other cases, helps iframe.

3) Can throw links in codepen or sample code for such chats.

-- Simple search on the tags 'chat' in codepen gave it.

Find more questions by tags ChatsHTMLJavaScriptCSS