How i can use java in my offline html file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How i can use java in my offline html file?

i am creating a new html file of a website deaign. i am beginner .i am using notepad

20th Apr 2018, 1:27 PM
Beginner Followers
Beginner Followers - avatar
3 Answers
+ 3
java or javascript? Java and JS are completely different things.
20th Apr 2018, 1:43 PM
What was my name again?
What was my name again? - avatar
+ 2
Set JavaScript code into the 'script' tag in tags 'head' or 'body' in your HTML-document
20th Apr 2018, 2:40 PM
Sergey Vishnevsky
Sergey Vishnevsky - avatar
+ 1
First don't use scripts with URL and insert <script> </script> in your <body> or <head> and if you will use a file like main.js you must add <script> in <body>. tag because it's important to load page.
20th Apr 2018, 8:23 PM
Abdelrahman Ashref
Abdelrahman Ashref - avatar