What Is HTML?

What are the advantages of exporting multiple distinct pages in one HTML file vs each page in a separate HTML file?

  • I am new to mobile app development. I noticed that many  prefer to have all HTML code in a single HTML file why? I thought managing separate HTML files might seem easier as we can  associate a separate js file to each HTML file to handle dynamic  behaviors but again there has to be advantages when using the single  HTML file version. So what are the pros and cons of these two approaches when comes to  writing HTML5 mobile apps. Why having all html code in a single file is  preferred?

  • Answer:

    Remember DRY principle. Dont Repeat Yourself.

Anonymous at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.