How to get IP address in HTML?
You can't. HTML is a markup language, not a programming language. it doesn't "do" anything - it just structures content.
Can I get IP with JavaScript?
JavaScript works with third-party applications to fetch the IP addresses. These are the application services that fetch the user's IP address and simply return it in three formats, ie., plain text, JSON, and JSONP format. There are loads of them available on the internet.