W3 schools HTML include files -
i using w3 schools include script. works html files not exist inside folder.
how code looks:
<div w3-include-html="content.html"></div>
when try use same include script sub directory, w3 schools include not work. have tried couple of different ways try work, example:
<div w3-include-html="../content.html"></div>
or
<div w3-include-html="../../content.html"></div>
does know how work? here's the link w3schools example.
have tried use full directory of file want include? if folder has same root html running, don't need add ../
put:
<div w3-include-html="folder/content.html"></div>`
then check if there's error code.
Comments
Post a Comment