Web page header optimization suggestions

Web page header optimization suggestions

Logo optimization:

1.The logo image should be as small as possible.
2. Generally it is put in as background.
2. Definitely add h1 tag (to improve authority)
4. Search engines are most friendly to text links. <a href="#">123456</a>
5. You can use text-indent:-9999em; to hide the text, then use display:block; to convert it to a block, and then set its height (block elements can only inherit the width of their parent)
6. Be sure to add a title attribute to improve user experience
7. The homepage logo is generally named sohulogo.png. If there is a second-level domain name news.sohu.com, the logo should not have the same name as the homepage logo, newslogo.png.

Horizontal Menu:

1. Support the label and keep it in place. position:absolute, do not write the top value, you can write the left value to adjust the position.
2. The gap must be the padding of the parent box, not the margin of the child box
3. The monitoring must be on li, not on a
4. Learn to use class "avoidance mode" - our descendant selector is a bit difficult to use, so we need to add different distinctions to different li and add styles through class
5. Don’t pursue elegant code too much

The above web page header optimization suggestions are all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

<<:  HTML6 implements folding menu and accordion menu example code

>>:  Detailed explanation of MySQL database index

Recommend

How to create and run a Django project in Ubuntu 16.04 under Python 3

Step 1: Create a Django project Open the terminal...

How to build a deep learning environment running Python in Docker container

Check virtualization in Task Manager, if it is en...

Detailed explanation of the correct use of the if function in MySQL

For what I am going to write today, the program r...

PHP-HTMLhtml important knowledge points notes (must read)

1. Use frameset, frame and iframe to realize mult...

How to quickly deploy Redis as a Docker container

Table of contents getting Started Data storage Co...

How to use JavaScript and CSS correctly in XHTML documents

In more and more websites, the use of XHTML is rep...

CSS margin overlap and how to prevent it

The vertically adjacent edges of two or more bloc...

Detailed explanation of MySQL redo log (redo log) and rollback log (undo logo)

Preface: The previous article described several c...

Tutorial on installing Ceph distributed storage with yum under Centos7

Table of contents Preface Configure yum source, e...

Vue+ssh framework to realize online chat

This article shares the specific code of Vue+ssh ...

Details on how to write react in a vue project

We can create jsx/tsx files directly The project ...

The process of installing and configuring nginx in win10

1. Introduction Nginx is a free, open source, hig...

Detailed explanation of the solution to Ubuntu dual system stuck when starting

Solution to Ubuntu dual system stuck when startin...

Detailed explanation of JavaScript's Set data structure

Table of contents 1. What is Set 2. Set Construct...