Yvonne A.

asked • 04/05/23

Help with HTML Pagination

Hello.

I'm new to HTML and have setup a website and would like to use pagination as there is a lot of content on one page already and I'd like to split the content up among individual pages (e.g., from homepage > 2 > 3 > 4 or

< Previous 1 2 3 4 Next >).


I'm inputting the code I have so far. Two problems I'm experiencing:


  1. When I view the website live, any button I click like 2, 3,or 1, all of them bring me back to the homepage and not the intended page - if I wanted to go to page 4 from page 2, it takes me back to homepage/page 1.
  2. When I view the website live, page 4 is always highlighted like it's the active page yet I removed the <active> code from the html properties.
  3. I have this code listed in all my pages hoping they'd somehow connect, but they aren't. Everything just brings me back to www.mysite.com/#
  4. Code:

  5. </p><p> test</p><p> </p><p>







homepage



  1. A Computer Science Portal for Geeks





Interviews Suck 1:



  1. bla bla bla





  2. << Previous
  3. 1
  4. 2
  5. 3
  6. 4
  7. 5
  8. Next >>





2 Answers By Expert Tutors

By:

Adam B. answered • 10/18/23

Tutor
New to Wyzant

Front-End Development Tutor & Corporate App Developer with UX Skills

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.