how many of you know the different types of tags to make italics in HTML & css with out <i> tag...??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

how many of you know the different types of tags to make italics in HTML & css with out <i> tag...???

with out <i>text here</i>

23rd Apr 2017, 8:56 AM
Raghu Polipalli
Raghu Polipalli - avatar
13 Answers
+ 4
Besides <i> in the HTML file you can also use one of the following options: - In HTML file: <em> - in HTML file: <cite> - in CSS file: [selector] {font-style: italic;}
23rd Apr 2017, 9:14 AM
Thanh Le
Thanh Le - avatar
+ 7
So the winner is @Thanh Le. or do you know other way than what people has posted here?
23rd Apr 2017, 9:23 AM
Agus Mei
Agus Mei - avatar
+ 7
@Raghu Can you mark @Thanh Le answer as best answer to make him the winner for your quizz?
23rd Apr 2017, 10:17 AM
Agus Mei
Agus Mei - avatar
+ 6
is it a quizz?
23rd Apr 2017, 9:11 AM
Agus Mei
Agus Mei - avatar
+ 6
i don't think there is another way.. in HTML <i> element is da only way to define italic text, without any extra tags!!
23rd Apr 2017, 9:16 AM
Don MTY
Don MTY - avatar
+ 6
what about those italic and footnote class. how do you make it italic? (surely with css but how, or do you use javascript?)
23rd Apr 2017, 9:38 AM
Agus Mei
Agus Mei - avatar
+ 5
hey..... you said without <i> tag, why you include it in your answer?
23rd Apr 2017, 9:29 AM
Agus Mei
Agus Mei - avatar
+ 1
yep
23rd Apr 2017, 9:12 AM
Raghu Polipalli
Raghu Polipalli - avatar
+ 1
Yep So the final winner is @Thanh Le. all are agree with me?
23rd Apr 2017, 9:46 AM
Raghu Polipalli
Raghu Polipalli - avatar
+ 1
<span class="footnote"> This uses a CSS class for semantics. So far this appears to be the best way but it actually has two problems. Not all text has sufficient meaning to warrant semantic markup. For example, is italicised text at the bottom of the page really a footnote? Or is it an aside? Or something else entirely. Perhaps it has no special meaning and only needs to be rendered in italics to separate it presentationally from the text preceding it. Semantic meaning can change when it is not present in sufficient strength. Lets say I went along with "footnote" based upon nothing more than the text being at the bottom of the page. What happens when a few months later I want to add more text at the bottom? It is no longer a footnote. How can we choose a semantic class that is less generic than <em>but avoids these problems?
23rd Apr 2017, 9:51 AM
Raghu Polipalli
Raghu Polipalli - avatar
0
I have following four approaches: <i>Italic Text</i> <em>Italic Text</em> <span class="italic">Italic Text</span> <span class="footnote">Italic Text</span>
23rd Apr 2017, 9:24 AM
Raghu Polipalli
Raghu Polipalli - avatar
0
normally included , i gave answer all possibilities including i tag
23rd Apr 2017, 9:31 AM
Raghu Polipalli
Raghu Polipalli - avatar
0
<em>Italic Text</em> <span class="italic">Italic Text</span> <span class="footnote">Italic Text</span>
23rd Apr 2017, 9:32 AM
Raghu Polipalli
Raghu Polipalli - avatar