<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":4176,"date":"2022-04-20T09:41:05","date_gmt":"2022-04-20T09:41:05","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4176"},"modified":"2022-04-21T07:31:51","modified_gmt":"2022-04-21T07:31:51","slug":"what-is-pagination-how-can-pagination-be-implemented","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/","title":{"rendered":"What is pagination ? How can pagination be implemented ?"},"content":{"rendered":"<ul>\n<li style=\"text-align: justify;\">In website, Pagination is a simple sequence of pages.<\/li>\n<li style=\"text-align: justify;\">These pages have similar content to display and are interconnected to the users.<\/li>\n<li style=\"text-align: justify;\">Multiple pages may be needed for a better user experience, easier navigation, personas, the buyer&#8217;s journey, and other reasons.<\/li>\n<li style=\"text-align: justify;\">It is a prime example of e-commerce websites.<\/li>\n<li style=\"text-align: justify;\">In a single page, it would be inefficient for Amazon to list all of its items in a single category.<\/li>\n<li style=\"text-align: justify;\">If necessary, products specifications and images can be divided into several websites.<\/li>\n<\/ul>\n<p><strong>For example,<\/strong><\/p>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-markup code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markup code-embed-code\">&lt;!DOCTYPE html&gt;<br\/>&lt;html&gt;<br\/>&lt;head&gt;<br\/>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;<br\/>&lt;style&gt;<br\/>.pagination a {<br\/>  color: black;<br\/>  float: left;<br\/>  padding: 8px 16px;<br\/>  text-decoration: none;<br\/>  transition: background-color .3s;<br\/>}<br\/><br\/>.pagination a.active {<br\/>  background-color: dodgerblue;<br\/>  color: black;<br\/>}<br\/><br\/>.pagination a:hover:not(.active) {background-color: #ddd;}<br\/>&lt;\/style&gt;<br\/>&lt;\/head&gt;<br\/>&lt;body&gt;<br\/><br\/>&lt;h2&gt;Welcome to Wikitechy&lt;\/h2&gt;<br\/>&lt;p&gt;Responsive pagination with hover effects:&lt;\/p&gt;<br\/><br\/>&lt;div class=&quot;pagination&quot;&gt;<br\/>  &lt;a href=&quot;#&quot;&gt;&laquo;&lt;\/a&gt;<br\/>  &lt;a href=&quot;#&quot;&gt;1&lt;\/a&gt;<br\/>  &lt;a class=&quot;active&quot; href=&quot;#&quot;&gt;2&lt;\/a&gt;<br\/>  &lt;a href=&quot;#&quot;&gt;3&lt;\/a&gt;<br\/>  &lt;a href=&quot;#&quot;&gt;4&lt;\/a&gt;<br\/>  &lt;a href=&quot;#&quot;&gt;5&lt;\/a&gt;<br\/>  &lt;a href=&quot;#&quot;&gt;6&lt;\/a&gt;<br\/>  &lt;a href=&quot;#&quot;&gt;&raquo;&lt;\/a&gt;<br\/>&lt;\/div&gt;<br\/><br\/>&lt;\/body&gt;<br\/>&lt;\/html&gt;<\/code><\/pre> <\/div>\n<p><strong>Output:<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4177\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png\" alt=\"\" width=\"918\" height=\"493\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png 918w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination-300x161.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination-768x412.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination-390x209.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination-820x440.png 820w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In website, Pagination is a simple sequence of pages. These pages have similar content to display and are interconnected to the users. Multiple pages may be needed for a better user experience, easier navigation, personas, the buyer&#8217;s journey, and other reasons. It is a prime example of e-commerce websites. In a single page, it would [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[17079],"tags":[17159,17156,17158,17149,17147,17146,17153,17152,17154,17151,17155,17150,17157,17148,17160],"class_list":["post-4176","post","type-post","status-publish","format-standard","hentry","category-web-designing","tag-api-pagination-best-practices","tag-api-pagination-example","tag-api-pagination-types","tag-create-a-paginated-api-with-nodejs","tag-everything-you-need-to-know-about-api-pagination","tag-explore-what-pagination-is-and-how-to-implement-it-properly","tag-get-all-data-from-paginated-api","tag-how-to-implement-general-pagination","tag-how-to-implement-pagination-in-java","tag-how-to-implement-pagination-in-reactjs","tag-how-to-implement-pagination-in-rest-api","tag-simple-frontend-pagination","tag-what-is-api-pagination","tag-what-is-pagination","tag-what-is-pagination-in-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is pagination ? How can pagination be implemented ? - Wikitechy<\/title>\n<meta name=\"description\" content=\"What is pagination ? - In website, Pagination is a simple sequence of pages. These pages have similar content to display and are interconnected to the users.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is pagination ? How can pagination be implemented ? - Wikitechy\" \/>\n<meta property=\"og:description\" content=\"What is pagination ? - In website, Pagination is a simple sequence of pages. These pages have similar content to display and are interconnected to the users.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-20T09:41:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-21T07:31:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/\",\"name\":\"What is pagination ? How can pagination be implemented ? - Wikitechy\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png\",\"datePublished\":\"2022-04-20T09:41:05+00:00\",\"dateModified\":\"2022-04-21T07:31:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What is pagination ? - In website, Pagination is a simple sequence of pages. These pages have similar content to display and are interconnected to the users.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/#primaryimage\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png\",\"contentUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png\",\"width\":918,\"height\":493},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\/\/www.wikitechy.com\/interview-questions\"],\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is pagination ? How can pagination be implemented ? - Wikitechy","description":"What is pagination ? - In website, Pagination is a simple sequence of pages. These pages have similar content to display and are interconnected to the users.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/","og_locale":"en_US","og_type":"article","og_title":"What is pagination ? How can pagination be implemented ? - Wikitechy","og_description":"What is pagination ? - In website, Pagination is a simple sequence of pages. These pages have similar content to display and are interconnected to the users.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/","og_site_name":"Wikitechy","article_published_time":"2022-04-20T09:41:05+00:00","article_modified_time":"2022-04-21T07:31:51+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png"}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/","name":"What is pagination ? How can pagination be implemented ? - Wikitechy","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png","datePublished":"2022-04-20T09:41:05+00:00","dateModified":"2022-04-21T07:31:51+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What is pagination ? - In website, Pagination is a simple sequence of pages. These pages have similar content to display and are interconnected to the users.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-pagination-how-can-pagination-be-implemented\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/pagination.png","width":918,"height":493},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4176"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4176\/revisions"}],"predecessor-version":[{"id":4178,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4176\/revisions\/4178"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}