search
HomeWeb Front-endHTML TutorialHow to optimize the head and body of a website

We know that any website must be parsed into HTML before the browser can recognize it. In other words, any website made with any technology will be parsed into HTML by the browser. Therefore, we must understand that an HTML page consists of three parts, that is, the start tag and end tag of html, the start tag and end tag of head, and the start tag and end tag of body.

We know that any website must be parsed into HTML before the browser can recognize it. In other words, any website made with any technology will be parsed into HTML by the browser. Therefore, we must understand that an HTML page consists of three parts, that is, the start tag and end tag of html, the start tag and end tag of head, and the start tag and end tag of body. There is nothing much to say about the start tag and end tag of html. Let’s talk about these two aspects of head and body:

1. Head optimization:

The Head part is the first part read by search engines and plays an important role in SEO, especially the role of title and description. This part mainly focuses on Meta tag optimization.

META The three that we pay most attention to are "Title, Keywords, Description", and the less commonly used "Subject, Author, Copyright". After determining the keywords, how to arrange the keyword distribution among these three tags is actually very particular. It is no exaggeration to say that I personally spent nearly half a year researching these three labels at first, and then I will share with you some of my experiences in the past six months without reservation.

1、Title

Title is also similar to a Description. There are usually four points to note when describing Title:

(1) Don’t stuff too many keywords

(2) The title should not be too long, limit it to 30 Chinese characters

(3) Integration of long-tail keywords

(4) Use the symbols "|" or "," to separate keywords.

When making a title, you must pay attention to writing skills, and the keywords must be written in place, but at the same time, do not pile them up, and also pay attention to new ideas.

2、 Keywords

Keywords tag At present, Yahoo pays more attention to it, while Baidu and Google have gradually lost their attention. Of course, none of us know when they will pay attention to it again, so it is necessary to write Keywords. How to write it? Usually when I write, I only write a few core keywords, separated by English commas. I try to make the keywords as concise as possible, and there are no special techniques.

3、Description

Description is often where we lay out website keywords and long-tail keywords. Is Description a more important tag? We're pretty sure Google said yes, but what about Baidu? Speaking of Baidu's crawling of Description, there are currently many websites that do not display the Description written by themselves in the description information of Baidu search results, but display a certain part of the content at the top of the website as a description. Someone said: "This is because Baidu believes that the crawled content is more suitable for describing the website itself." This is not entirely true. When your website is included stably, Baidu still displays Description. Description and Title have the same status. Every SEOER performs a lot of optimization techniques on these two aspects. Take www.enkj.com/domain/ as an example. The keyword of this page is domain name registration. In the Title, this keyword has been repeated enough, but it is not enough to just write the title like this. Without detailed analysis of the keywords, the number of words in the title limit Not much, and the emergence of Description just solves this shortcoming.

4、Subject、Author、Copyright

We generally use these three tags very rarely. When is it more appropriate for us to use these three tags? These three tags are commonly used in some small business websites, especially websites with little text content on their homepages, which are difficult to optimize. It can play a role in increasing the layout and density of keywords. Subject represents the theme and title of the website, and Author is the author and Copyright.

2. Optimization of the body part

The body is the main body of a page, and of course it plays an important role in SEO. The optimization of this part is also the most difficult to grasp. If your "head" part is well optimized and there is no body to support it, then the search engine is likely to regard you as cheating. Even if it is not regarded as cheating, it is impossible to give you a good weight. For the optimization of this part, I think the optimization should be mainly focused on the following two aspects.

(1), keyword density, layout

Keyword layout is a crucial point in SEO. Good keyword density and layout are a key to rapid improvement in rankings. However, what kind of keyword density and layout is better?

1. First, let’s look at keyword density

At first, we met many people who often said that it doesn’t matter how dense the keywords are, as long as they are reasonable. Then let me give you a density of 50%. He might say: "NO, NO, NO." Obviously, reasonableness is correct. The key is that the density is important, not irrelevant. I think the density must be at least 3% or above, otherwise the density will be too low and the correlation will be slightly worse. The height is controlled below 10%.

2. Keyword layout

The layout of keywords follows three principles: 1. From top to bottom 2. From left to right 3. Everywhere

I personally research on keyword layout in two ways:

(1) Uniformly distributed

(2) Concentrated + Evenly Distributed

How to check the keyword layout of a word? Search for a keyword on Baidu and click on Baidu snapshot to view it. This trick is called "Baidu Snapshot Method"

Even distribution: This should be easy to understand, that is, in the snapshot, all keywords appear in a scattered form in every corner of your website, and you ensure that they are relatively even, so when describing the Meta or the arrangement of the article content, you must Have a plan beforehand. Concentrated + evenly distributed: I have always used this method, and the effect is pretty good. Concentrate a certain part of the keywords on the basis of even distribution. For example, the important position of the head. The layout of keywords is not random, it is very deliberate.

(2), Internal link optimization

The construction of internal links is a boring and laborious process, but the ranking effect it brings in the later period is obvious and stable. To do a serious optimization, you must lay a good foundation for the website. Even if your ranking is not good now and you are laughed at by some people, the person who laughs last often laughs the sweetest. There are 5 common methods for building internal links:

1. Website navigation: Many times, the navigation of the website is often the secondary keywords of the website. Every time a page is updated, these keywords are given an internal link. Over time, such internal links are somewhat powerful.

2. Anchor keyword link: For example, if the word "server" is mentioned in an article or somewhere, then the server can be connected to the main domain name http://www.enkj.com/idc/. In this way Complete the link to the anchor text, but don’t link to all servers. Just do a few. Too many will offend search engines.

3. Related article links: During content construction, a certain article or a highly relevant article will often be promoted in the article, and a title link will appear in the article. In addition, there are links to popular articles, links to series of articles, FAQs, etc. In content construction, a certain article is often mentioned in the article.

4. Website footer: Generally, we place copyright information, etc. in the footer. Some people are used to giving a link back to the most core keywords in the footer, or repeating navigation. Just remember not to make your footer look like it’s typesetting. This is a matter of degree.

5. Website map: Use the XML map creation tool to create an XML map for the website, which will significantly improve spider crawling and search engine inclusion. This will become more important in the future.

If you can grasp every detail above, then your SEO skills are already at hand. SEO pays attention to details. When doing SEO, you still need to be patient.

Reprint URL: http://www.enkj.com/idcnews/Article/20130726/735

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

HTML in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

How do you insert an image into an HTML page?How do you insert an image into an HTML page?May 04, 2025 am 12:02 AM

ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc

HTML's Purpose: Enabling Web Browsers to Display ContentHTML's Purpose: Enabling Web Browsers to Display ContentMay 03, 2025 am 12:03 AM

The core purpose of HTML is to enable the browser to understand and display web content. 1. HTML defines the web page structure and content through tags, such as, to, etc. 2. HTML5 enhances multimedia support and introduces and tags. 3.HTML provides form elements to support user interaction. 4. Optimizing HTML code can improve web page performance, such as reducing HTTP requests and compressing HTML.

Why are HTML tags important for web development?Why are HTML tags important for web development?May 02, 2025 am 12:03 AM

HTMLtagsareessentialforwebdevelopmentastheystructureandenhancewebpages.1)Theydefinelayout,semantics,andinteractivity.2)SemantictagsimproveaccessibilityandSEO.3)Properuseoftagscanoptimizeperformanceandensurecross-browsercompatibility.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version