2
Answers

HTML Variable Formatting

Maha

Maha

10y
757
1
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)