tips
HTML4 vs HTML5: What's the differenceIn 1993, HTML (HyperText Markup Language) was first introduced as standard code for web pages on the Internet and has been developed a number of times. In 1998 HTML version 4 (html4) was released which was easy to use for hobbyists and beginners to create web pages. In 2014 HTML version 5 (html5) was released as standard with many more possibilities.. The biggest change is that content and layout are strongly separated from each other. A disadvantage of html5 is that a number of attributes of html4 are no longer supported and the use of css has become almost necessary. Why it was decided to no longer support a number of html4 attributes may have to do with de-cluttering. For those who are used to html4, this is a big adjustment. Browsers know which versions of a web page the codes are because the top line of the page states which version is intended. for html5: <!DOCTYPE html> for html4: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> Hopefully, browsers will continue to support the web pages made in older html versions for a long time so that we can continue to view them. Disappeared in html5: • <font> . . . </font> nu: <p style= ...> . . . </p> for example <p style="color:blue"> . . . </p> this is also the case for <p style="font-size:11px"> en <p style="font-family:verdana"> • <center> . . . </center> nu: <p span align="middle"> . . . </p> • <a name="(named link destination"> . . . </a> nu: <a id="(named link destination"> . . . </a> • <table width="50%"> . . . </table> nu: <table style="50%"> • <td width="50"> . . . </td> nu: <td style="width: 50px;"> . . . </td> • <BODY text="#000088" bgcolor="#9999ee" link="#000088"> now: can only be done with CSS links html4: • manual in Dutch • HTML4 Element Reference, tags alphabet links html5: • tutorial, manual attributes • HTML5 Element Reference, tags alphabet • HTML5 validator |