How to add <a> tag in html
Subscribe2

2 questions in 1 day YAY!

I'm not sure how to do the following?

Note: <a> has to be inside the text area.
<textarea>
hello

<a>Boom!</a>
</textarea>

You are viewing a single comment. View All
Highwayman

Okay, so I looked into it and apparently you cannot have other html elements (such as an <a> tag..) in a textarea. I suggest instead using a div and styling it like a textarea using css and then just adding the contenteditable attribute to it in the html so they can use it like a textarea, but be able to add html elements like normal. It’s a little weird… but it should work. @Subscribe2