Custom HTML

Custom HTML block allows you to add anything on the web to your documentation pages.

To create a Custom HTML block:

Never inject code that you did not inspect yourself.

What's Included?

We already have Bootstrap 4.1 and FontAwesome 5 Free loaded which you can use.

How to use Custom HTML?

With Custom HTML, there are two modes available:

  • When the HTML is simple, it is rendered in the page directly (body), without an iFrame, example HTML code:
HTML
Copy

For this mode, you can use inline styling. You should not add any <body> or <html> tags as the content is already rendered inside a <body> tag. If you wish to style the elements, then you can use Custom CSS to create new classes which you can apply to the elements here.

iFrame in Custom HTML

For security, when the HTML includes scripts or styles, it is rendered in an iFrame inside the page. For example, such code would be rendered inside an iFrame:

HTML
Copy

When using an iFrame, no pre-existing CSS would load, including CSS from Custom CSS or any third party library. Apply your own CSS rules.

Resizing Dynamic iFrames

If your Custom HTML is getting embedded in an iFrame, and the iFrame dynamically adds elements to the body which causes the height to be limited and the scrollbars to show, then you can instruct the iFrame to resize by using:

Javascript
Copy

Use this function whenever you add elements to body dynamically.

Custom HTML Examples

Here are our top examples:

Fancy Button

Generate this button by:

Markup
Copy

Postman Collection Button

Generate a postman collection button by:

HTML
Copy

Column Layout

Welcome to our Supercharged documentation which has been written using DeveloperHub.io. This is a column layout.

Generate this column layout by:

HTML
Copy

Grid Layout

Generated this grid layout by:

HTML
Copy

GitHub Gist

Generated this Gist by:

Markup
Copy

PDF Reader

Generate this PDF Reader by:

Markup
Copy

Flowcharts and Diagrams

Generate this Flowchart by exporting from draw.io in HTML format.

Google Maps

Generated this map by using embedgooglemap.net.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated by Zaid Daba'een
blocks