Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the web page header optimization recommendations?

Shulou Source: shulou.com Published: 2022-06-03 12:44:39 09月28日 Update

This article introduces you what the web page header optimization recommendations are, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Logo Optimization:

1.logo pictures should be as small as possible.

two。 It is usually put in as a background.

two。 Be sure to add H2 tag (lifting weight)

4. Search engines are the most friendly to text links. 123456

5. You can use text-indent:-9999em; to hide text, display:block; to block, and then set its height (block elements can only inherit the width of the parent)

6. Be sure to add title attribute to a to improve user experience

7. The name of the home page logo is generally sohulogo.png. If there is another secondary domain name, news.sohu.com,logo, do not take the same name as the home page logo, newslogo.png.

Horizontal menu:

1. Sign, stay where you are. Position:absolute, do not write the top value, you can write the left value to adjust the position.

two。 The gap must be the padding of the parent box, not the margin of the child box

3. The monitor must be on li, not on a.

4. To learn to use class "taboo mode"-our descendant selector is a little difficult to use, so we can add different distinctions to different li, and add styles through class.

5. Don't pursue elegant code too much.

On the web page header optimization suggestions to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Header suggestion web page different content more box home page help good same elegant bad secondary domain name code location element interest in place name Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Huawei MariaDB Shulou Information Apple