HTML tag <meta>

I am reading a HellowWorld tutorial for a servlet. The selector is defined in the HelloWorldServelet.java class. Super just displays the message "Hell world" on the client’s request. The only html file is "index.html" below. I don’t understand how the meta tag works. When I run the application on a web server, it automatically translates this page with the url:

http: // localhost: 8080 / helloworld / HelloWorld

How do the attributes "http-equiv" and "content" work with the service?

<html>
<head>
<meta http-equiv="Refresh" content="0; URL=HelloWorld">
</head>
</html>
+4
source share
2 answers

The meta tag Refreshautomatically redirects the browser to the URL specified after the specified amount of time.

, , , .

https://en.wikipedia.org/wiki/Meta_refresh

+2

"http-equiv" "content" HTTP.

, http-equiv . -

<meta http-equiv="refresh" content="45">

45 .

refresh, cookies ..

+2

Source: https://habr.com/ru/post/1614668/


All Articles