Answers for "how to use ID in HTML"

7

html id

<p id="newid">this is the id</p>

<style>
#newid {
  background-color: green;
  text-align: center;
}
</style>
Posted by: Guest on November-10-2020
4

referance html id css

<style>
  #test {
  /*Styleing here*/
  }
</style>
<h1 id="test"></h1>
Posted by: Guest on January-10-2020
3

html id

<style>
#grepperHeader {
  background-color: lightblue;
  color: navy;
  padding: 40px;
  text-align: center;
}
</style>

<h1 id="grepperHeader">grepperHeader</h1>
Posted by: Guest on June-21-2020
0

how to use ID in HTML

<p id='some-paragraph'>This is a paragraph.</p>
Posted by: Guest on July-08-2021

Browse Popular Code Answers by Language