Image headers with alt text and text

Do search engines process the alt text of the image placed in the h1 tag, just as they will handle the plain text placed in the h1 tag?

I did a search here to find the answer to this question, but I was able to find information about replacing images and the notorious discussions h1.

For example:

<h1><img src="#" alt="Contact Us" /></h1>

Proceed in the same way as:

<h1>Contact Us</h1>

In the electronic eye of a search engine?

This seems significantly less "CSS Hacky" than other image replacement methods such as negative text padding, display: none, height: 0, or funny z-index integers.

+3
source share
3 answers

, alt h1 . ( ) Google :

<h1>Title</h1>

:

<h1><img alt="Title" src="image.jpg"/></h1>

Yahoo Bing Alt .

.

+1

h1 ( ), alt , , , Rowan

html-, ... ? , ?

0

You can use the object tag for the image and provide alternative content in the object tag.

<h1><object data="contact-us.jpg" title="Contact Us">Contact Us</object></h1>

Thus, the robot sees that the text and users see the image.

0
source

Source: https://habr.com/ru/post/1719645/


All Articles