- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The <i> tag is not working in the XDK.
I type in some text, surround it with <i> and </i> and then view it in the Emulator. Not working! Try it yourself.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just checked, it works, I used the code below, create new blank project and replace contents on index.html with this and try:
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=no"> </head> <body> <p>Hello, <i>Intel</i> XDK!</p> </body> </html>
Are you using any javascript UI framework? it may be over riding styles for <i>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Joda,
As Rakshith I checked the "<i>" tag and it rules fine.
Could you check yor CSS? May be you have some CSS code overruling the default style of the "<i>" tag.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi! Joda.
Comment out the <link> tags in your code and try it again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is not working for me. The text is not italianized. Instead it is always english.
Is there anything special I need to do to get it to italianize?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@joda, post your full html code, did u try with the code I posted above?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rakshith,
I tried your code, but how do you know if "intel" is italianized? Isn't it the same in both languages?
I tried this:
<i>good morning</i>
But it always says "good morning", never "buon giorno".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Joda B.
I think you are misunderstanding the actual function of the <i> tag. It is for "italicizing" something, i.e. making it appear "slanted", not "italianizing" something, i.e. translating it into Italian.
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Joda!
I think you have a misunderstanding here with the "<i>" tag.
The "<i>" tag only gives format to the text, never translate it. The "<i>" tag just make the text look the same way you can see the text in this forum. You can find a full explanation of the tag here:
http://www.w3schools.com/tags/tag_i.asp
You can review all html tags here:
http://www.w3schools.com/tags/default.asp
In English this font style is called "italic" and in spanish is called "cursiva", in Italian it's called "corsivo" (I'm not sure of it, it's a google translate, sorry).
The "<i>" tag just make the text view that way. Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, this doesn't make any sense. The first line in those docs you sent me to states
The <i> tag defines a part of text in an alternate voice or mood. The content of the <i> tag is usually displayed in italic.
"Displayed in italic". That's the part I want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Joda italic does not mean Italian, italic means slaned text, it will just make the text within <i> slanted or sloped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Joda,
Sorry, but as says Rakshith, it's "italic", not "italian".
Italic is a text style, a way to see the text, not a language. Italic it's how this style is called in English, I don't know where are you from, but I'm spaniard and in spanish we call this style "cursiva". We use it to cite and quote what other person says or to give the text some relevance so the reader could notice it.
I'm sorry, but if you study HTML in English you will find this tag, and the tag "<em>", emphasized, and both of the tag will display the text in the same way, although both tags are diferent. I recomend you to search for a onlince course of HTML in your native language, where you can understand much better the tags of HTML.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page