You must Sign In to post a response.
  • Category: HTML

    CreateElement is newly added?

    In HTML 5.0 i can see document.createElement("..."). What syntax was used in earlier versions of html to create a new element. Same syntax or something else?
  • #753152
    document.createElement method is present in the previous versions of html as well. the only difference is now it also allows to create new html5 elements such as header, nav, article and others.
    Miss. Jain
    Microsoft Certified Technology Specialist in .Net

  • #753162
    You can refer below articles to know more about this. This is not a new thing in HTML,

    Asheej T K

  • #753235
    its used on the earlier version of the HTML as well.

    In HTML 5 it can be used for some special element as well.

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • Sign In to post your comments