how ot make a comments box html code example

Example 1: html how to add comment

<!-- This is the first comment, it won't be shown on a page -->

<h1>And this is a header. It will be fully visible.</h1>

<!--
Multiline comment.
You can place a lot of information there.
Maybe even a whole book.
-->

Example 2: html comment box

<style>
#wrapper{
  display:flex;
  flex-direction:column;
  width:fit-content;
  background-color: rgb(0,0,0,80%);
  padding:10px;
  color:whitesmoke;
  border-radius:5px;
}

#inner_div{
  margin-bottom:4px;
}

#comment-box{
  background-color: rgb(0,0,0,40%);
  border-radius:10px;
  resize:none;
  color:whitesmoke;
  padding:7px;
  outline:none;
}
</style>

<div id='wrapper'>
   <div id='inner_div'>Comment:</div>
   <textarea placeholder='Type here...' name="" id="comment-box" cols="30" rows="10"></textarea>
</div>

Tags:

Html Example