How to make H1 element with background clickable?


background-color: red;
text-ident: 123px;
height: 50px;
width: 50px;

<a href="#click"><h1>logo</h1></a>

How to make this whole clickable on h1 elements?


If you want your group of elements to be 50px x 50px then apply this dimensions to <a> tag and make h1 width and height 100%. Be aware that h1 by default have margins and paddings you should remove.