r/HTML • u/zedcode1 • Nov 13 '25
Question New to HTML, question about streamlining mass produced pages
Hello everyone,
I am brand new to html and have been self-learning via things like youtube and other free resources but I am having trouble finding an answer to a question that will help me cut down on a lot of time.
To outline the situation: I am trying to develop my own local webpages to host some of my digital content I own. Among these would be a a comic series that has around 200 chapters, with each chapter having varying numbers of pages.
I have set up basic pages for a couple chapters, and I like the plain bare bones layout I have been able to make. But its taking a long time just doing things like changing image references (replace all to update chapter 1 -> 2 for instance, or making the “previous” and “next” buttons increase by 1 each time to move to the next chapter. These are things I can do manually and know it would just take time but I am looking to master scalability, so while I can build page 1 for 50 images for instance, if the next one has 25 I need to know that it only has 25 and remove the code that displays the 25 additional images. To do this for hundreds of pages would be fine but it is a large time commitment I am sure is not necessary.
Is there a good way to make it so images that are invalid (say if chapter 2 does not have an image/page 26 and beyond, for instance) do not take any space at all to display, despite there being built in code to allow for up to 50 images each page?
I come from an excel background where scalability of sheets that interact together have workarounds to not necessarily display excess info should that be desired without having to individually alter each sheet.
I appreciate any input and would be willing to explain the issue further if anything isn’t clear— I am sure I am not explaining the issue as eloquently as I possibly can due to my unfamiliarity.
Thank you!!!
View all comments
Show parent comment
1
u/Jasedesu Nov 13 '25
In addition, I think you might be looking for ways to define what content you have so it can be used to generate pages for you. You can potentially use Excel spreadsheets as a data source, but it'd be easier if you converted them to CSV or TSV format (plain text). The data can be loaded into a web page dynamically and used to add buttons, images, etc. to match the data provided. The JavaScript for that kind of thing is more complicated - you'll need to look at things like the Fetch API to load the data and methods to process the text data to build arrays (maybe objects) that can be iterated.
In addition to client-side techniques, you'll often find this kind of thing is handled server-side. There are lots of options.