To get the client's public IP address, JavaScript acts as a third-party server-side language. JavaScript can't do it alone, so, jQuery is added to do this. JavaScript works with third-party applications to fetch the IP addresses.
How to get IP address from JavaScript without third party?
You cannot get the IP of the machine in JS. Also note that it's not possible to get the IP of the machine on its local domain. It's only possible to use a server-side IP lookup and those will only go the the first external source of the client network, which is generally either the router or the ISP server.
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.