Which HTML tag to use to be recognized by Writer as a footnote?

I write some of my documents in HTML and sometimes need to open them in writer to convert them to a different format. The only thing that I haven’t been able to figure out is how to do footnotes. I’ve searched the web but only found solutions that related to websites more than documents and that essentially constructed the footnote out of some special character and a link to a certain place in the page. Obviously, these are not recognized by writer as footnotes. For now I have to create footnotes one by one manually in writer which is not very efficient. Hence my question:

Is there a way to write a piece of HTML that would be recognized as a footnote? Endnote would be sufficient too provided I can just switch it to footnote in writer.

A brief test using File > Save As… > File type of “HTML” indicates this type of code being written out for a footnote:

<P STYLE="margin-bottom: 0pt">text<A CLASS="sdfootnoteanc" NAME="sdfootnote1anc" HREF="#sdfootnote1sym"><SUP>1</SUP></A></P>

<DIV ID="sdfootnote1">
    <P CLASS="sdfootnote"><A CLASS="sdfootnotesym" NAME="sdfootnote1sym" HREF="#sdfootnote1anc">1</A>Footnote</P>
</DIV>

Opening a HTML file with that type of footnote encoding using Writer seems to interpret the footnotes as expected.