Maha

Maha

  • NA
  • 600
  • 70.9k

HTML Variable Formatting

Oct 19 2014 6:26 AM
http://www.w3schools.com/html/html_computercode_elements.asp

Above web page is saying about HTML variable formatting.

I wish to know what is the different between following two method of formatting, because both are giving same result. Problem is highlighted.

<!DOCTYPE html>
<html>
<body style="font-size:16px">

<p>Einstein wrote:</p>

<p><var>E</var> = <var>m</var> <var>c</var><sup>2</sup></p>

</body>
</html>


<!DOCTYPE html>
<html>
<body style="font-size:16px">

<p>Einstein wrote:</p>

<p><i>E</i> = <i>m<i/><i>c</i><sup>2</sup></p>

</body>
</html>


Answers (2)