<header> <hgroup> <h1><a href=/>АЛТАЮ 75 ЛЕТ</a></h1> <h2>И НАМ ЕСТЬ ЧТО СКАЗАТЬ</h2> </hgroup> </header> 

I want to insert a logo in the header, but not in the hgroup tag, which tag for the img logo should I use?

1 answer 1

Correctly said @drdaeman is better to use background-image in CSS for example:

 <header id="header"> <hgroup> <h1><a href=/>АЛТАЮ 75 ЛЕТ</a></h1> <h2>И НАМ ЕСТЬ ЧТО СКАЗАТЬ</h2> </hgroup> </header> <style> #header{ background-image: url(logo.gif); } </style> 
  • This begs the question. How is this method better than the usual <img />? Comment, be so kind. - Vitaly Kustov
  • one
    This is no better (I did not say that! And therefore did not send a comment, and not an answer) and no worse; it just has a different semantics. The HTML document defines the structure, and the CSS defines the presentation. It further depends on whether the image in the header is semantically necessary, or whether it is needed there only visually. And this is in the eyes of the developer and designer. For example, in the case of a letter or a curly title, the picture is definitely irrelevant. But in the case of the logo - I, personally, get lost. You can say anything. If the picture is the same “Altay is 75 years old”, then the picture is not needed. If not, I don’t know, I have to think. - drdaeman