Mock </ HTML >

Github

Free fake HTML responses for testing and prototyping hypermedia applications.

Powered by django, htmx, and sqlite

Try it! Documentation
                
                    <table>
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>
  <tr>
    <td>Data 1</td>
    <td>Data 2</td>
  </tr>
</table>
                
              

Try it

Run this code here, in a replit or from any site:

            
                <button hx-get='https://html-mock.fly.dev/tag/table?class=table%20table-bordered'> Get </button>
            
          
          
           // your results will be displayed here
          
        

When to use

mock-html is a free online Hypermedia REST API that you can use whenever you need some fake HTML data. It can be used for testing, prototyping, or just for fun.

You can use it to test your htmx or hyperscript code quickly without spinning up your own web server

Resources

All resources accepts GET/POST/PUT/DELETE requests

  • anchor
  • blockquote
  • bold-text
  • division
  • form
  • header-nav
  • heading-1
  • heading-2
  • heading-3
  • heading-4
  • heading-5
  • heading-6
  • iframe
  • image
  • italic-text
  • link-break
  • list-item
  • long-paragraph
  • long-unordered-list
  • ordered-list
  • paragraph
  • script
  • select
  • span
  • table
  • text-input
  • unordered-list

Use your own data

Simply make a public Github Gist and make a request to our server with the ID

Again - using htmx, you can do this from any site or client.

            
                <button hx-get='https://html-mock.fly.dev/gist/c9fd72b8f8a265d8bfcdb4338ffc76fa'> Get Gist </button>
            
          
          
           // your results will be displayed here
          
        

Routes



Coded and maintained with ❤️ by Jonathan Adly