Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Làm quen với Tìm kiếm: Hướng dẫn dành cho nhà phát triển
Cải thiện nội dung của bạn để người dùng dễ tìm thấy trên công cụ tìm kiếm là việc rất cần thiết, vì đây là cách để ngày càng có nhiều người dùng thích hợp xem nội dung của bạn hơn. Hoạt động này được gọi là tối ưu hóa cho công cụ tìm kiếm (search engine optimization, hay SEO). Thông qua đó, bạn có thể thu hút thêm nhiều người dùng quan tâm truy cập vào trang web của bạn. Nếu Google Tìm kiếm gặp khó khăn trong việc hiểu trang của bạn, thì bạn có thể đang bỏ lỡ một nguồn lưu lượng truy cập quan trọng.
Có thể bạn sẽ ngạc nhiên khi biết rằng không phải Google lúc nào cũng nhìn thấy mọi thứ bạn thấy trên trình duyệt. Trong ví dụ sau, Google không biết có hình ảnh trên trang này vì trang sử dụng một tính năng JavaScript mà Google không hỗ trợ.
Nội dung người dùng nhìn thấy
Người dùng nhìn thấy trang như dưới đây. Người dùng có thể thấy hình ảnh và văn bản trong trình duyệt.
Nội dung Google nhìn thấy
Google nhìn thấy trang như dưới đây. Google không biết có hình ảnh trên trang này vì trang này sử dụng một tính năng JavaScript mà Google không hỗ trợ.
Kiểm tra các đường liên kết của bạn
Googlebot chuyển từ URL này sang URL khác bằng cách tìm nạp và phân tích cú pháp các đường liên kết, sơ đồ trang web và lệnh chuyển hướng. Googlebot xem mọi URL là URL đầu tiên và duy nhất mà Googlebot thấy trên trang web của bạn. Để đảm bảo Googlebot có thể tìm thấy tất cả URL trên trang web bạn sở hữu, hãy:
Sử dụng các phần tử <a> mà Google có thể thu thập dữ liệu.
Đảm bảo rằng tất cả các trang trên trang web đều truy cập được qua một đường liên kết có trên một trang khác mà Google có thể tìm thấy. Đảm bảo đường liên kết giới thiệu có chứa văn bản hoặc thuộc tính alt (cho hình ảnh) phù hợp với trang đích.
Tạo và gửi sơ đồ trang web để giúp Googlebot thu thập dữ liệu trên trang web của bạn theo cách thông minh hơn. Sơ đồ trang web là một tệp cung cấp thông tin về các trang, video và tệp khác trên trang web cũng như mối quan hệ giữa chúng.
Đối với các ứng dụng JavaScript chỉ có một trang HTML, hãy đảm bảo rằng mỗi màn hình hoặc phần nội dung riêng lẻ đều có một URL.
Nếu bạn vẫn gặp vấn đề khiến Googlebot không thể lập chỉ mục trang của bạn, hãy xem nhật ký máy chủ để xác định lỗi.
Đừng quên dùng nội dung dạng văn bản trên trang
Googlebot chỉ có thể tìm thấy nội dung dạng văn bản. Ví dụ: Googlebot sẽ không nhìn thấy văn bản trong video. Để đảm bảo rằng Google Tìm kiếm hiểu được nội dung trên trang của bạn, hãy:
Đảm bảo rằng bạn trình bày nội dung hình ảnh dưới dạng văn bản.
Ví dụ: một trang danh mục sản phẩm chứa danh sách hình ảnh về áo sơ mi nhưng không có văn bản ghi chú cho từng hình ảnh thì cũng chưa tối ưu. Trang danh mục sản phẩm nên có văn bản chú thích cho từng hình ảnh.
Đảm bảo trang nào cũng có một tiêu đề mô tả và phần mô tả meta.
Tiêu đề và phần mô tả meta độc đáo sẽ giúp Google cho người dùng thấy mức độ phù hợp của trang đối với họ, nhờ vậy lưu lượng truy cập qua kết quả tìm kiếm có thể tăng lên.
Sử dụng HTML có ngữ nghĩa. Google lập chỉ mục nội dung HTML, PDF, hình ảnh và video. Tuy vậy, Googlebot không lập chỉ mục nội dung cần đến bổ trợ (ví dụ: Java hay Silverlight) hoặc nội dung được kết xuất trong canvas. Thay vì dùng trình bổ trợ, hãy dùng mã đánh dấu HTML có ngữ nghĩa cho nội dung của bạn nếu có thể.
Đảm bảo rằng người dùng có thể truy cập vào nội dung văn bản của bạn trong DOM.Ví dụ: nội dung được thêm thông qua thuộc tính content của CSS không phải là một phần của DOM, và hiện tại Google Tìm kiếm sẽ bỏ qua nội dung này. Bạn có thể sử dụng thuộc tính content cho nội dung trang trí; Google Tìm kiếm sẽ không lập chỉ mục nội dung này.
Thông báo cho Google về các phiên bản khác của nội dung
Google không tự nhận biết được rằng trang web hoặc nội dung của bạn có nhiều phiên bản. Ví dụ: phiên bản dành cho thiết bị di động và dành cho máy tính hoặc phiên bản quốc tế của trang web. Để đảm bảo rằng Google hiển thị đúng phiên bản cho người dùng, bạn có thể:
Để chặn Google tìm thấy trang của bạn, hãy yêu cầu người dùng phải đăng nhập để truy cập trang (ví dụ: sử dụng trang đăng nhập hoặc bảo vệ trang bằng mật khẩu).
Để chặn Googlebot thu thập dữ liệu trên trang của bạn, hãy tạo tệp robots.txt.
Để chặn Google lập chỉ mục trang của bạn nhưng vẫn cho phép thu thập dữ liệu, hãy thêm thẻ noindex.
Nếu nội dung của bạn không xuất hiện trên Google Tìm kiếm và bạn muốn nội dung đó xuất hiện, hãy làm theo các bước dưới đây:
Dùng Công cụ kiểm tra URL để kiểm tra xem Googlebot có thể truy cập trang hay không.
Kiểm tra tệp robot.txt để xem bạn có vô tình chặn Googlebot thu thập dữ liệu trên trang web của bạn hay không.
Kiểm tra mã HTML của bạn xem có quy tắc noindex trong các thẻ meta hay không.
Giúp trang web xuất hiện dưới dạng kết quả nhiều định dạng
Kết quả nhiều định dạng có thể bao gồm kiểu, hình ảnh hoặc các tính năng tương tác khác mà có thể giúp trang web của bạn nổi bật hơn trong kết quả Tìm kiếm. Bạn có thể giúp Google hiểu trang của bạn tốt hơn và đưa ra kết quả nhiều định dạng cho trang đó trên Tìm kiếm bằng cách cung cấp gợi ý rõ ràng về ý nghĩa của trang thông qua dữ liệu có cấu trúc trên trang. Nếu bạn không biết nên bắt đầu từ đâu, hãy khám phá thư viện tính năng hiện có của chúng tôi.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-04 UTC."],[[["\u003cp\u003eOptimize your website for Google Search by ensuring Googlebot can discover, crawl, and understand your content, resulting in more relevant traffic.\u003c/p\u003e\n"],["\u003cp\u003eUse the URL Inspection Tool and Rich Results Test to see how Google perceives your site, addressing any discrepancies between user and Google's view.\u003c/p\u003e\n"],["\u003cp\u003eImplement best practices for JavaScript SEO, sitemaps, and descriptive content to improve Google's understanding and indexing of your website.\u003c/p\u003e\n"],["\u003cp\u003eLeverage structured data to enable rich results, enhancing your site's visibility and engagement in search results.\u003c/p\u003e\n"],["\u003cp\u003eControl Google's access and indexing of content using robots.txt, noindex tags, and password protection as needed.\u003c/p\u003e\n"]]],["Developers can optimize their sites for Google Search by ensuring they are secure, fast, and accessible. Key actions include testing the site with the URL inspection or Rich Results tools to see how Google views it. Use crawlable `\u003ca\u003e` elements, build sitemaps, and ensure each content piece has a unique URL. Also, use text to represent visual elements, add descriptive titles and meta descriptions, and utilize semantic HTML. Finally, use methods to notify Google about changes like updated content.\n"],null,["# SEO Guide for Web Developers | Google Search Central\n\nGet started with Search: a developer's guide\n============================================\n\n\nMaking your content search-friendly matters because it's how you get more relevant users viewing\nyour content. This is called search engine optimization (SEO), which can result in more\ninterested users coming to your site. If Google Search has trouble understanding your page,\nyou're possibly missing out on an important source of traffic.\n\n\nThis guide covers what developers can do to make sure that their sites work well with Google\nSearch. In addition to the items in this guide, make sure that your site is\n[secure](https://web.dev/explore/secure),\n[fast](https://web.dev/explore/fast),\n[accessible to all](https://web.dev/explore/accessible), and\n[works on all devices](/search/docs/crawling-indexing/mobile/mobile-sites-mobile-first-indexing).\n| For help that's not so technical, visit the [SEO starter guide](/search/docs/fundamentals/seo-starter-guide). The SEO starter guide covers other aspects of SEO, like authoring content.\n\nFind out how Google sees your site\n----------------------------------\n\n\nTo get started, test your site in the [URL inspection tool](https://search.google.com/search-console) or\n[Rich Results Test](https://search.google.com/test/rich-results) to\nsee how Google sees your site.\n[Googlebot is Google's web\ncrawling bot](/search/docs/crawling-indexing/googlebot) that discovers new and updated pages for the Google index. For\nmore information about the process, go to\n[How Google Search Works](/search/docs/fundamentals/how-search-works).\n\n\nYou may be surprised to find that Google doesn't always see everything that you see in the\nbrowser. In the following example, Google doesn't know there are images on this page\nbecause the page uses a JavaScript feature that isn't supported by Google.\nUser view\n\nHere's how a user views the page. Users can view the images and text in the browser.\n\nGoogle view\n\nHere's how Google views the page. Google doesn't know there are images on this page\nbecause the page uses a JavaScript feature that isn't supported by Google.\n\nCheck your links\n----------------\n\n\nGooglebot navigates from URL to URL by fetching and parsing links, sitemaps, and redirects. Googlebot\ntreats every URL as if it's the first and only URL it has seen from your site. To make sure\nthat Googlebot can find all the URLs on your site:\n\n- Use [`\u003ca\u003e` elements that Google can crawl](/search/docs/crawling-indexing/links-crawlable#crawlable-links). Ensure that all pages on the site can be reached by a link from another findable page. Make sure the referring link includes either text or, for images, an alt attribute, that is relevant to the target page.\n- [Build and submit a sitemap](/search/docs/crawling-indexing/sitemaps/build-sitemap) to help Googlebot more intelligently crawl your site. A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them.\n- For JavaScript apps that have only one HTML page, make sure that each screen or piece of individual content has a URL.\n\nCheck how you're using JavaScript\n---------------------------------\n\n\nWhile Google does run JavaScript, there are some differences and limitations that you need\nto account for when designing your pages and applications to accommodate how crawlers access\nand render your content.\n\nLearn more about the [basics of JavaScript SEO](/search/docs/guides/javascript-seo-basics) or how to [fix\nSearch-related JavaScript problems](/search/docs/guides/fix-search-javascript).\n\n\nTo learn more about how Google handles JavaScript when crawling, rendering, and indexing, see the following video. \n\nKeep Google updated when content changes\n----------------------------------------\n\n\nTo make sure that Google finds your new or updated pages quickly:\n\n- [Submit sitemaps](/search/docs/crawling-indexing/sitemaps/build-sitemap).\n- [Ask Google to recrawl your\n URLs](/search/docs/crawling-indexing/ask-google-to-recrawl).\n\nIf you're still having trouble getting your page indexed, check your server logs for errors.\n\nDon't forget about the words on the page\n----------------------------------------\n\n\nGooglebot can only find content that is textually visible. For example, text in videos is\ninvisible to Googlebot. To make sure that Google Search understands what your page is about:\n\n- **Make sure that your visual content is expressed in text form.** For example, a product category page that contains a list of images of shirts with no textual context about each image is suboptimal. The product category page should include some textual explanation for each image.\n- **Make sure that every page has a\n [descriptive title](/search/docs/appearance/title-link#page-titles) and\n [meta description](/search/docs/appearance/snippet#meta-descriptions)**. Unique titles and meta descriptions help Google show how your pages are relevant to users, which in turn can increase your search traffic.\n- **Use semantic HTML**. While Google indexes HTML, PDF content, images, and videos, it doesn't index content that requires plugins (for example, Java or Silverlight) or content that is rendered in a canvas. Instead of using a plugin, use semantic HTML markup for your content whenever possible.\n- **Make sure your text content is accessible in the\n [DOM.](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction)** [For example, content that is added via the](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction)[CSS `content` property](https://developer.mozilla.org/en-US/docs/Web/CSS/content) is not part of the DOM and Google Search ignores it at the moment. It's fine to use the `content` property for decorative content; Google Search may not index this content.\n\nTell Google about other versions of your content\n------------------------------------------------\n\n\nGoogle doesn't automatically know that there are multiple versions of your site or content. For\nexample, a mobile and desktop version, or international versions of your site. To make sure\nthat Google serves the right version to users, you can:\n\n- [Consolidate duplicate\n URLs](/search/docs/crawling-indexing/consolidate-duplicate-urls).\n- [Tell\n Google about localized versions of your site](/search/docs/specialty/international/localized-versions).\n- [Make your AMP pages\n discoverable](https://www.ampproject.org/docs/fundamentals/discovery).\n\nControl what content Google sees\n--------------------------------\n\n\nThere are several ways to block Googlebot:\n\n- To block Google from finding your page, restrict access to your content to logged in users (for example, use a login page or [password-protect your\n page](/search/docs/crawling-indexing/control-what-you-share)).\n- To block Googlebot from crawling your page, [create a robots.txt](/search/docs/crawling-indexing/robots/create-robots-txt). A robots.txt is not a mechanism for keeping a web page out of Google. To keep a web page out of Google, use the `noindex` robots rules, or [password-protect](/search/docs/crawling-indexing/control-what-you-share) your page.\n- To block Google from indexing your page but still allow crawling, [add a\n `noindex` tag](/search/docs/crawling-indexing/robots-meta-tag#noindex). Combining multiple crawling and indexing rules might cause some rules to counteract other rules. Learn how to configure these rules properly by reading [Combining crawling with indexing / serving rules](/search/docs/crawling-indexing/robots-meta-tag#combining).\n\nIf your content isn't showing up in Google Search and you want it to show up, follow these\nsteps:\n\n- Check if Googlebot can access the page with the [URL inspection tool](https://support.google.com/webmasters/answer/9012289).\n- [Test your robot.txt](https://support.google.com/webmasters/answer/6062598) file to see if you're unintentionally blocking Googlebot from crawling your site.\n- Check your HTML for `noindex` rules in `meta` tags.\n\nEnable rich results for your site\n---------------------------------\n\n\nA rich result can include styling, images, or other interactive features that can help your\nsite stand out more in Search results. You can help Google understand your page better and\nshow rich results for it in Search by providing explicit clues about the meaning of a page\n[with structured data on the page](/search/docs/appearance/structured-data/intro-structured-data). If\nyou're not sure where to start, [explore our gallery of available features](/search/docs/guides/search-gallery)."]]