Meta tag keywords, page description settings help SEO website optimization (GO)

Source: Internet
Author: User

One of the SEO improvements for the ASP. 4.0 Web forms is to add 2 new properties to the page class: Metakeywords and Metadescription, which make it easy and cleaner to set these values programmatically in the background code class.


Meta tag keywords, page description settings can improve the choice of keywords page relevance, conducive to engine search optimization work.
For example:
<title>asp.net 4.0 Tutorials </title>
<meta name= "keywords" content= "ASP. 4.0 Tutorial" 4.0,asp.net
<meta name= "description" content= "This page content is an ASP. NET 4.0 Tutorial"/>


The


The following is a simple code snippet that demonstrates how to set these properties programmatically in the Page_Load () event handler function:

void Page_Load (Object Sender,eventargs e)
{
Page. title= "ASP. NET 4.0 Tutorial";
Page. metadescription= "This page content is the ASP. NET 4.0 Tutorial";
Page. metakeywords= "ASP. 4.0,asp.net 4.0 Tutorial";
}

In addition to setting the keywords and description properties in the background code programmatically, you can now also @page at the top of the. aspx Web page

Directives to set them in a declarative manner. The following code snippet demonstrates how to do this:


<%@ page title= "ASP 4.0 Tutorial"

keywords= "ASP. 4.0,asp.net 4.0 Tutorial"

description= "This page content is an ASP. NET 4.0 Tutorial"
......
%>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.