he question is a little vague, I will assume that it is asking about the most common case, which is how to serve a page with content available in multiple languages, but the content within the page should be displayed only in one consistent language.
When an HTTP request is made to a server, the requesting user agent usually sends information about language preferences, such as in the Accept-Language header. The server can then use this information to return a version of the document in the appropriate language if such an alternative is available. The returned HTML document should also declare the lang attribute in the <html> tag, such as <html lang="en">...</html>.
In the back end, the HTML markup will contain i18n placeholders and content for the specific language stored in YML or JSON formats. The server then dynamically generates the HTML page with content in that particular language, usually with the help of a back end framework.
Posted Date:- 2021-08-26 10:23:13
Can a web page contain multiple <header> elements? What about <footer> elements?
What are data- attributes good for?
Where and why is the rel="noopener" attribute used?
What is the difference between section and div?
How do you serve a page with content in multiple languages?
When is it appropriate to use the small element?
What does CORS stand for and what issue does it address?
What are the Benefits of Server Side Rendering (SSR) Over Client Side Rendering (CSR)?
What happens if the list-style-type property is used on a non-list element like a paragraph?
How to insert a picture into a background image of a web page?
hat's the difference between an "attribute" and a "property" in HTML?
How Can I Get Indexed Better by Search Engines?
What were some of the key goals and motivations for the HTML5 specification?
How can you highlight text in HTML?
When is it appropriate to use frames?
State the difference between progress and meter tag?
Tell me the minimum number of HTML5 tags that are required to create a web page?
What happens if the list-style property is used on a non- list element like a paragraph?
Do you think several selectors with class names be grouped together?
What is the hierarchy that is being followed when it comes to style sheets?
Is <br> tag the only way to separate sections of text?
What is the difference between Html5 application cache and regulate Html browser cache?
List some new tags introduced in HTML5?
What is <iframe> and why we can use this?
What is Web SQL Database in Html 5?
Describe the usage of <footer>, <article>, <section>, and <header> HTML5 semantic elements.
How do you create a link that will connect to another web page when clicked?
How do we declare a custom attribute in HTML?
How do you create multicolored text in a webpage?
What is the sessionStorage Object in HTML5 ? How to create and access?
What is < !DOCTYPE>? Is it necessary to use in HTML5 ?
List different types of API's available in HTML5?
What use of the article tag in HTML5?
What is Canvas in HTML5 ? How to write a Canvas ?
Can we specify fractional weight values such as 670 or 973 for font-weight?
How are active hyperlinks different from normal links?
Tell the limits of the text field size?
State the difference between the directory and menu lists and the unordered list?
What will happen if we overlap sets of tags?
Why are there both numerical and named character entity values?