If you can just use <i> for italic, can you also shorten the others? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If you can just use <i> for italic, can you also shorten the others?

28th Jul 2016, 1:37 PM
Erica Green
Erica Green - avatar
4 Answers
+ 2
its better to write it as code in css "selector" { font-style: italic }
30th Jul 2016, 11:09 AM
Mahbod Sr
Mahbod Sr - avatar
+ 2
It's better to keep all styling to CSS and leave HTML for just the structure of your webpage. That way your HTML code is simple and it's less confusing where everything is.
30th Oct 2016, 2:24 AM
Harry Kainaro
Harry Kainaro - avatar
+ 1
The italic tag will show the same thing, but style with CSS is better, more control, more speed!
3rd Aug 2016, 1:36 AM
Anthone Silva
Anthone Silva - avatar
0
<i></i> Is an html tag that you can use separately from CSS, so it isn't in fact a shortening of "italic" in the CSS code.
21st Jul 2017, 1:33 PM
Brad
Brad - avatar