0

What is the difference between the Style attribute and for example the <i> tag

If I wanted to italicize a line of text I could use e.g <i><p> Gold </p></i> or alternatively I could use <p style=" font-style : italic ; " > Gold </p>. Is there a difference? Maybe in the usage? Or is it just Handy to be able to use both to do the same thing

14th May 2020, 12:47 AM
Muhammad Ozair
Muhammad Ozair - avatar
2 Réponses
+ 2
Both works same no compression.
14th May 2020, 1:36 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
Diffrence is code simplicity in style than in not using style
14th May 2020, 1:42 AM
Abhay
Abhay - avatar