Software Archive
Read-only legacy content
17061 ディスカッション

<i> tag not working

Joda_B_
ビギナー
5,069件の閲覧回数

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.

0 件の賞賛
11 返答(返信)
Rakshith_K_Intel
従業員
5,069件の閲覧回数

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>

José_Manuel_G_
ビギナー
5,069件の閲覧回数

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.

 

Michael_O_
ビギナー
5,069件の閲覧回数

Hi! Joda.

 

Comment out the <link> tags in your code and try it again.

Joda_B_
ビギナー
5,069件の閲覧回数

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?

Rakshith_K_Intel
従業員
5,069件の閲覧回数

@joda, post your full html code, did u try with the code I posted above?

Joda_B_
ビギナー
5,069件の閲覧回数

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".

Barry_Johnson
新規コントリビューター I
5,069件の閲覧回数

@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.

:-)

José_Manuel_G_
ビギナー
5,069件の閲覧回数

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.

 

Joda_B_
ビギナー
5,069件の閲覧回数

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.  

Rakshith_K_Intel
従業員
5,069件の閲覧回数

@Joda italic does not mean Italian, italic means slaned text, it will just make the text within <i> slanted or sloped.

José_Manuel_G_
ビギナー
5,069件の閲覧回数

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.

 

 

 

返信