Adding the website’s logo, people usually adds a <img> tag and sometimes a <a><img> tag. This looks like this:
But CSS gives us a more professional way to insert a logo. Using this way, we won’t insert a <img> tag or a <a><img> tag. We only will insert a <a> tag, which contains image and link, using CSS. This may look like this:
And everything is done! After giving our link an id, the CSS code is written.
Try yourself! Everything will be the same, but this code is more efficient.