Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


Basic JavaScript Formatting

basic javascript formatting

  • Please log in to reply
 

#1 OneDes

OneDes

    Senior Member

  • Designer
  • 282 posts

Posted 18 December 2012 - 05:20 PM

JavaScript has a few formatting requirements, since it strongly resembles HTML formatting, so keeping HTML in mind can make it easier to get JavaScript formatting right. Both JavaScript and HTML use beginning and ending tags, as well as further definition attributes.
To format JavaScript properly, include the beginning <script type=”text/javascript”> and the ending </script> tags.
The “type” attribute used in the opening tag is essential to identify your JavaScript as the programming language in use. Any additional script you add should go between these two tags.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users