Introduction to keyword design methods in web design

Introduction to keyword design methods in web design
Many times, we ignore the setting of the web page header attributes when making the homepage. The header attributes of a web page refer to the area in the Html file affected by the <Head> identifier. The header information of the Html file includes a collection of some information about the current file. Modifying the attributes of the <Head> area will not directly affect the visual effect of the file. But by setting it up, our homepage production process will be more standardized and easier to use.
Now let's take a look at how to set some homepage header properties:

1. META identifier The META identifier is the header element of the homepage used to record some important information of the current page, such as the character set, author, version, web page keywords, etc.
For example:
<head>
..............
<meta http-equiv=″Content-Type″ content=″text/html; charset=gb2312″>
<meta name=″Computer Software and Hardware Application Network″ content=″Produced by Computer Software and Hardware Application Network Studio″>
<meta name=″Version″ content=″Third revision″>
<meta name=″content″ content=″software download, use, homepage creation, make money, navigation...″>
..............
</head>
The content of "name" indicates that the META identifier contains descriptive information about the current page, and "http-equiv" indicates HTTP header information (HTTP-EQUIV).

2. Insert keyword attributes <br />Many popular search engine robots on the Internet today can read keyword attributes in META identifiers and index them in their databases based on the information provided. When visitors enter relevant keywords in the search site, your web page address will be included. But some search engines will limit the number of your keywords, and extra keywords will be ignored.
For example:
<meta name=″keywords″ content=″Computer Software and Hardware Application Network Studio, https://www.jb51.net″>
<meta name=″keywords″ content=″software download, software usage, homepage creation, navigation″>
Among them, "keywords" refers to keywords, and "content" refers to the attributes of keywords.
3. Insert the web page description attribute <br />Like the nature of keywords, the web page introduction provides the search engine robot with a general introduction to the current web page. Similarly, some search engines will limit the number of words in your introduction.
Example:
<meta name=″description″ content=″Computer Software and Hardware Application Network (https://www.jb51.net)-Computer Software and Hardware Application Network Studio, Mavericks″>
4. Insert web page refresh attribute
For example:
<meta http-equiv=″refresh″ content=″5;URL=https://www.jb51.net″>
This code means: after 5 seconds, the current page will automatically jump to "https://www.jb51.net". The "5" in "content" means the interval is 5 seconds, which can also be changed to "3", "4" or other times, which is determined by the web page author; "URL" is followed by the address of the other page you want to jump to.
<meta http-equiv=″refresh″ content=″3″>
This code means: after 3 seconds, the current page will be automatically refreshed. The "3" in "content" means the interval is 3 seconds. It can also be changed to "4", "5" or other times, which is also determined by the web page author.
5. Insert web base link properties <br />If all the links in a page of yours use relative path links, and you want to change them all to the same absolute path links on the Internet, you can do this by setting the web base link properties.
For example:
<base href=″https://www.jb51.net/″ target=″_blank″>
As above, all relative paths on your web pages will be preceded by "https://www.jb51.net/" when linked. Among them, “target=″_blank″” means that the link file is opened in a new window, and you can make other settings. Changing “_blank” to “_parent” means the linked file will be opened in the parent window of the current window; changing it to “_self” means the linked file will be opened in the current window (frame); changing it to “_top” means the linked file will be displayed in full screen.
The above are some tips for setting the header attributes of a web page. I hope it can be helpful to the majority of netizens who make homepages. The author Xiao Niu hopes that everyone can make our online home (personal homepage) more beautiful by exchanging experiences and insights on homepage production with each other!

<<:  Use CSS to create 3D photo wall effect

>>:  React Routing Link Configuration Details

Recommend

How to connect a Linux virtual machine to WiFi

In life, the Internet is everywhere. We can play ...

How to successfully retrieve VMware Esxi root password after forgetting it

Prepare a CentOS6 installation disk (any version)...

Vue implements scroll loading table

Table of contents Achieve results Rolling load kn...

Summary of common docker commands

Docker installation 1. Requirements: Linux kernel...

Solve the black screen problem after VMware installs Linux system and starts

1. Installation environment 1. HUAWEI mate x cpu ...

How to make your JavaScript functions more elegant

Table of contents Object parameters using destruc...

MySQL 8.0.12 decompression version installation tutorial

This article shares the installation tutorial of ...

Example code of vue + element ui to realize player function

The display without the effect picture is just em...

Key points for writing content of HTML web page META tags

The META tag is an auxiliary tag in the head area...

The main differences between MySQL 4.1/5.0/5.1/5.5/5.6

Some command differences between versions: show i...

Docker builds jenkins+maven code building and deployment platform

Table of contents Docker Basic Concepts Docker in...

HTML left, center, right adaptive layout (using calc css expression)

In the latest HTML standard, there is a calc CSS e...

Implementing login page based on layui

This article example shares the specific code of ...