Need Advice About Twitter Clone

Hello, everyone! I need advice! I want to create a Twitter clone using only HTML/CSS/JavaScript. So, I found the HTML markup of the tweet section (in Twitter's UI), and there the tweet input field is implemented using div elements. But isn't the text input supposed to be a textarea? And if yes, shouldn't it be inside a form tag?
No description
2 Replies
fgcazares
fgcazares14mo ago
Hi @The Internet's own Kiddo! I don't know about the internals of Twitter but maybe they have done it this way to have more control on the styling and the content? Is weird but definitely you can do your clone using a text area (that grows in size as typing...you can do this with JS)
MarkBoots
MarkBoots14mo ago
yep, this allows the content to be formatted. for example the color change and autofill for @-mentions and hashtags
Want results from more Discord servers?
Add your server