Include code in HTML page

Tell us what’s happening:
want to add code in my html page

                                **#include **
                                    int main(void)
                                            printf("hello, world\n");
                                            return 0;

but i can’t see <stdio.h> in my browser page. is there any way to do it?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36.

Link to the challenge:

You have to escape all the HTML special characters yourself, i.e. write it as &lt;stdio.h&gt;. Your IDE might have a utility to do this for you though… what editor are you using?

(edit: I thought a CDATA section would also do the trick, but alas they only work in the XML dialect of html5. Sigh.)

1 Like