What is Java script and how is different or used to help HTML?

  1. KParsons305 profile image59
    KParsons305posted 6 years ago

    What is Java script and how is different or used to help HTML?

  2. oldhorse profile image68
    oldhorseposted 6 years ago

    HTML basically just describes the structure of a Web page. e.g. This is a paragraph.  This is a heading...

    Javascript is a programming language that runs within the browser.  It can be used to change the Web page in response to actions the user takes.  e.g. Moving the mouse, entering text, clicking on something, etc.

    You didn't mention the third technical component of Web page design, but it is style sheets (CSS).  Style sheets describe how to visually render the document structure.  e.g.  This block of text should be red.

  3. profile image0
    khmohsinposted 6 years ago

    HTML is the language in which web pages are written to be interpreted by the server. Javascipt is similar, but is actually a web-adapted version of actual programming code, intended to write applets (small, web-based applications) for use on websites. They are both a type of code, but html is NOT a programming code. The HTML defines what the webpage looks like, the javascript handles things like counters, games, etc. Other web-based scripting languages, such as php and asp can be used to create entire webpages, but, like Javascript, are generally confined to handling what goes beyond the cosmetics of a website. The cosmetics are what HTML is for.