w3schools comment box code example

Example 1: commenting in html

<!-- a comment in html -->

Example 2: how do i comment in htmle

<div>
<p>This text is visible. Check the source code for multi-line comment.</p>
<!--  
Hello, world! I am a comment and I am
displayed in multiple lines!
--> 
</div>

Example 3: 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