我使用的是MVC3的网站,它没有出现在Google搜索中。作为SEO优化的一部分,我想把meta标签放在_layout.cshtml中。将meta标签仅放在母版页或内容页中是否好?什么是更好的SEO技术?元标记是静态的。提前致谢。asp.net中的meta标签mvc 3
0
A
回答
2
- Meta标签这是所有网站应该在其中介绍了一些自定义的页面_layout.cshtml
- Meta标签的地方应该在这个页面定义了你的自定义栏目。
例子:
_layout.chtml
<head>
<title>@Html.Raw(ViewBag.Title)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
... other common tags
@RenderSection("Meta", required: false) // your section
...
</head>
在自定义页面,你应该使用
@model SomeModel
@section Meta
{
<meta name="description" content="your custom tag" />
// other custom tags
}
// some html or other code
0
由于meta标签被放置在head
上,它们应该只放置在布局上。您可能还需要检查的文章"SEO is more than meta-tags and good content"
相关问题
- 1. asp.net中的标签mvc
- 2. Asp.net MVC标签
- 3. asp.net mvc标签内标签
- 4. Internet Explorer中的meta标签
- 5. 如何在主页上添加meta标签用于ASP.Net MVC 2
- 6. ASP MVC全站点META标签定制
- 7. META“expires”标签
- 8. 在meta标签
- 9. Meta标签jekyll
- 10. Meta标签
- 11. Meta标签itemprop
- 12. Cakephp Meta标签
- 13. Alias meta标签
- 14. 在meta标签
- 15. Sitecore Meta标签
- 16. ASP.net渲染meta标签有效
- 17. 隐藏/显示Meta标签ASP.NET动态
- 18. Facebook的meta标签
- 19. ASP.NET MVC 3中可用“标签”的文档?
- 20. XSS和Meta标签
- 21. 正从meta标签
- 22. 与AJAX meta标签
- 23. 有关meta标签
- 24. 在HTML meta标签
- 25. meta标签描述
- 26. Meta标签身体
- 27. 建议META标签?
- 28. asp.net mvc 3标识版本
- 29. MVC 3中的ASP.NET MVC 4模板3
- 30. 在asp.net中删除饼图切片标签mvc 3