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

Linux server SSH cracking prevention method (recommended)

1. The Linux server configures /etc/hosts.deny to...

About the problem of offline installation of Docker package on CentOS 8.4

The virtual machine used is CentOS 8.4, which sim...

Solution to Ubuntu cannot connect to the network

Effective solution for Ubuntu in virtual machine ...

How to solve the element movement caused by hover-generated border

Preface Sometimes when hover pseudo-class adds a ...

MySQL database master-slave replication and read-write separation

Table of contents 1. Master-slave replication Mas...

Docker+gitlab+jenkins builds automated deployment from scratch

Table of contents Preface: 1. Install Docker 2. I...

Basic notes on html and css (must read for front-end)

When I first came into contact with HTML, I alway...

Getting Started with Nginx Reverse Proxy

Table of contents Overview The role of reverse pr...

...

The front-end must know how to lazy load images (three methods)

Table of contents 1. What is lazy loading? 2. Imp...

Use of MySQL DATE_FORMAT function

Suppose Taobao encourages people to shop during D...

Detailed explanation of encoding issues during MySQL command line operations

1. Check the MySQL database encoding mysql -u use...