HTML Meta Description for Topics
Learn how to add an HTML meta description to your Paligo topics so that each topic has a description in search engine results.
For search engine optimization (SEO), it is good practice to add a description to each topic's metadata. When your topic appears in a search engine result, the search engine may use the description to provide more information about the page. The description usually appears below the page link in search results, but we cannot guarantee that the search engines will use it.
To add an HTML meta description, use the info
, abstract
, and para
elements, so that they are in a structural hierarchy like this:
<info> <abstract> <para>Your description</para> </abstract> </info>
We recommend that you add the info
, abstract
, and para
immediately after the title
in your topics.
-
Open a topic in the Paligo editor.
-
Select a valid position for the info element, for example, immediately after the title but before the first paragraph.
-
Use the element context menu to add the
info
element.To access the element context menu, press Alt and Enter (Windows) or Option ⌥ and Enter (Mac).
Note
If you already have an
info
element, you can add an abstract inside that. For example, you may already have aninfo
element to contain keywords. In which case, you can add theabstract
andpara
elements inside the sameinfo
element, before or after thekeywordset
. -
Use the element context menu to add the abstract element inside the info element.
-
Use the element context menu to add a para element inside the abstract element. Enter the description for the topic in the paragraph. Be aware that search engines have recommendations for the description length. For example, ideally, Google descriptions should be between 50 and 150 characters.
-
Add the rest of the topic's content after the
info
element. -
Select Save.
-
By default, the abstract will be visible in your HTML output. But you can use CSS to hide it from readers but still make it available to search engines.
The CSS to use is:
.abstract { display:none; }
You can either add that to your existing CSS file or you can use a CSS editor to create a new one. If you create a new CSS file, you will also need to add any other CSS that you want to apply to your content. When you have the CSS file ready, upload it to your HTML layout and save the layout. When you publish with that layout, your meta descriptions will be included, but hidden from view on your web pages.
To learn more about using CSS, see Branding your HTML Outputs with CSS.