Skip to content

Commit 7fd6195

Browse files
committed
Multilanguage
1 parent a093843 commit 7fd6195

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,36 @@ The `<small>` HTML element represents side-comments and small print, like copyri
21182118
<b><a href="#">↥ back to top</a></b>
21192119
</div>
21202120

2121-
#### Q. ***How do you serve a page with content in multiple languages?***
2121+
## Q. ***How do you serve a page with content in multiple languages?***
2122+
2123+
The **lang** attribute specifies the language of the element\'s content.
2124+
2125+
**Example**
2126+
2127+
```html
2128+
<!DOCTYPE html>
2129+
<html lang="en">
2130+
<head>
2131+
<meta charset="UTF-8" />
2132+
<title>HTML5 Multilanguage Page</title>
2133+
</head>
2134+
<body>
2135+
<h2>English</h2>
2136+
<p lang="en">This is demo text</p>
2137+
2138+
<h2>French</h2>
2139+
<p lang="fr">Ceci est un texte de démonstration</p>
2140+
2141+
<h2>Spanish</h2>
2142+
<p lang="es">Este es un texto de demostración</p>
2143+
</body>
2144+
</html>
2145+
```
2146+
2147+
<div align="right">
2148+
<b><a href="#">↥ back to top</a></b>
2149+
</div>
2150+
21222151
#### Q. ***What is the difference between `<section>` and `<div>`?***
21232152
#### Q. ***Where and why is the rel="noopener" attribute used?***
21242153
#### Q. ***Can a web page contain multiple `<header>` elements? What about `<footer>` elements?***

0 commit comments

Comments
 (0)