Heim > Web-Frontend > HTML-Tutorial > HTML Umlaute

HTML Umlaute

WBOY
Freigeben: 2024-09-04 16:31:48
Original
1062 Leute haben es durchsucht

The umlaute are one of the special characters in html; it is used for both html4 and html5 versions. In Every web project, we create some UI pages using html, jsp, angular, etc. Some front end technologies will build the front end page; each front end technology may have some set of special characters and features available for attracting user end. In HTML, we write the code begins in UTF-8 format or use different characters representations for CSS Styles in presentation areas for the html document. It has a different set of characters, currency symbols, and mathematical representations.

Syntax of HTML Umlaute

Html umlaute have one feature to allow the html symbol codes to identify and simplify the web site design.

Code:

<html>
<body>
<span >
</span>
<p>
---decimal codes and hexa decimal codesfor Umlaute character---
Use decimal code and hexadecimal code like &#220,&#xDC and &#252, &Uuml
</p>
</body>
</html>
Nach dem Login kopieren

The above code is the basic syntax for using html umlaute in English language keyboards. If we use the german language keyboard, it is very easy to understand and identified the keys in a keyboard for creating the html documents using umlaute type of characters because in normal English keyboard the symbol we are using umlaute like U and top of the character U in two dots it is hard to use in normal English keyboards so we will convert the character into “Unicode numbers, Html Entity and Html Unicode function call” and also easily convert the decimal and hexa-decimal codes.

The html document character encodings may vary depending upon the language used in the countries in the pcs and keyboard manufactured types. Generally, special characters, especially in html like UI front end codes, are typically those characters that are not easily typed on the keyboard. Eventhough we have a copy and paste the characters in the document, it will show some errors and exceptions. If we use any of the special characters in HTML, we will follow the html entity names or the html entity numbers. We will ensure and check whether that it will display correctly in all type of user browsers.

If we want to use the copyright symbol like “©”, we will use some decimal codes like ©, or & copy these symbols and strings will sue in our html codes then only we will show it on the front end web page. The special characters are nothing but its already predefined and specified with the new keywords for the html documents. It will perform the character operations in the backend; it will convert the html interpretation with the browsers; therefore, we must use either the html entity name or html entity number to access the features of the special characters or reserved characters in the web pages.

We also perform some html encode and decode operations when we use these type of special characters in the document. Generally, the encoder will convert all the given characters to their corresponding entities in the file; some characters have specified meanings. When we encode the character, they should validate themselves; it shouldn’t change the meaning of the characters. We can convert special characters to the html codes for displaying it in the web browsers eventhough we rendered it in the normal decimal and hexadecimal codes. GNOME it is one of the character map application it allows the special characters, unusual characters(which is unable some characters are not used in the document). If we want to create xml documents, we will convert the xml dom parsers to get the user input data; it will be converted into the html web page.

If we want to convert the xml to HTML, some transformations will be performed using xslt instructions; we will make them sure these instructions will be followed in the Encoding steps; it will be helpful for transformation usages. The formatting tags of the documents will be performed with the different behaviours is controlled by the different set of html attributes like

tag etc. Some tags will not be usable and not acceptable for the user browsers they are not compatabilty with the different kind of web browsers; even though we will find some attribute contents in the search engine model it is based on the ranking system it will automatically count the number of web page contents, and it is stored it in the logs it is based on the websites Authentication purpose for creating quality contents.

Examples of HTML Umlaute

Given below are the example:

Example #1

Code:

<html>
<style>
body {
font-size: 23px;
}
</style>
<body>
<span style='font-size:103px;'></span>
<p>Welcome to my domain ü</p>
<p>Welcome ü</p>
<p>Users &uuml;</p>
</body>
</html>
Nach dem Login kopieren

Output:

HTML Umlaute

Example #2

Code:

<html>
<head>
<style>
body {
font-size: 23px;
}
</style
<script>
function sample()
{
var strings = {
'Welcome': {
'de': '&Uuml;ber'
}, }
document.getElementById("sam").innerHTML="&#xFC";
}
</script>
</head>
<body>
<span style='font-size:103px;'></span>
<p>Welcome to my domain ü</p>
<p id="sam"><button type="button" onclick="sample()">Welcome</button></p>
</body>
</html>
Nach dem Login kopieren

Output:

HTML Umlaute

HTML Umlaute

Example #3

Code:

<html>
<head>
<style>
body {
font-size: 23px;
}
</style>
<script>
function sample()
{
var input = "Welcome &#252 to my domain;";
var encrypted = encodeURI(input);
var decrypted = decodeURI(encrypted);
var result=encrypted +"<br>"+ decrypted;
document.getElementById("sam").innerHTML=result;
}
</script>
</head>
<body>
<span style='font-size:103px;'></span>
<p id="sam"><button type="button" onclick="sample()">Welcome</button></p>
</body>
</html>
Nach dem Login kopieren

Output:

HTML Umlaute

HTML Umlaute

Dans les trois exemples ci-dessus, nous avons discuté des trémas HTML de base avec différentes catégories ; dans le premier exemple, nous avons affiché les caractères tréma HTML de base dans une page Web HTML. Dans le deuxième exemple, nous avons discuté de la même chose concernant l'utilisation des fonctionnalités javascript ; après avoir cliqué sur le bouton, il affichera le caractère spécial sur la page Web et dans le dernier exemple, nous avons utilisé le même script pour encoder et décoder la chaîne HTML en utilisant les types de données var, il convertira les chaînes données en opérations cryptées et déchiffrées sur le Web. pages.

Conclusion

Nous avons déjà discuté de quelques concepts de base du HTML ; c'est aussi un long voyage pour le développement Web. Dans ce HTML, nous utilisons différentes catégories technologiques telles que CSS, les styles d'amorçage, et même si nous utilisons certaines fonctionnalités javascript dans chaque ensemble d'attributs HTML, cela sera utile pour créer la structure et les fonctionnalités des documents HTML.

Das obige ist der detaillierte Inhalt vonHTML Umlaute. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!

Quelle:php
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage