1.

How does the server hanger the page in which content is present in several languages?

Answer»

When an HTTP request is sent to the server by the USER, the user browser ALSO sends a chunk of additional information regarding the language preference as the Accept-Language header. Then the server reads the HTTP request with the Accept-Language header and sends the DOCUMENT version BACK along with the right language and declares the language attribute Lang in the HTML tag.

Example:



Discussion

No Comment Found