Adding style to the alt text of Logo image

To style alt text of an image, which may be is the logo image for your website, you can do the following:

If you have an image link as:

<a href=”images/logo.jpg”></a>

You can put the above tag inside another tag as:

<p><a href=”images/logo.jpg”></a></p>


<h1><a href=”images/logo.jpg”></a></h1>

Now in the CSS file, give style attribue value as:

 font-size: 40px;
font-family: “Times new roman”, sans-serif;
color: #444;
font-weight: bold;


Leave a Reply

Your email address will not be published. Required fields are marked *