W
W
weranda2018-05-13 13:47:34
HTML
weranda, 2018-05-13 13:47:34

Is there a way to semantically output the IP address in HTML, or is there none?

Greetings
I needed to display the visitor's IP address in HTML only for use by his scripts, it should not be on the page. Are there any correct, semantic ways to display the IP address, maybe some special HTML tag like input[type="hidden"] or just wrap and hide it in any DIV tag?
PS
Or maybe there is some special Metatag in HEAD?
PPS
I wonder if a custom meta tag will do?
<meta name="user-ip" content=XXX.XXX.XXX.XXX">

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lapka-admin, 2018-05-13
@weranda

data-attr on element with display none?

A
Acko, 2018-05-13
@ayran

Look here, maybe it will clear up - htmlbook.ru/blog/atribut-data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question