+ 3

What soft I need for coding?

I studying html and use for tests cotedit (like notepad) But how add to code css and java script code? What soft I need?

17th Apr 2018, 12:59 PM
Arthur P
Arthur P - avatar
7 Réponses
+ 16
In Notepad : u need to add css in <style></style> & JavaScript in <script></script> for eg:- <html> <head><title></title> <style> add css here </style> <script> JavaScript here </script> </head> <body> </body> </html> or u will need text editor: like :- Notepad++ Sublime text editor atom etc
17th Apr 2018, 1:08 PM
🌛DT🌜
🌛DT🌜 - avatar
+ 2
Max Rubs , You just need a text editor where you write the code and a browser to see the result. Most Operating Systems comes with both, so you do not need to download anything.
17th Apr 2018, 1:04 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
So one file and and one code for all three?(HTML, js, CSS )
17th Apr 2018, 3:02 PM
Arthur P
Arthur P - avatar
+ 1
Max Rubs, When you are just playing and testing there is no need to put HTML, CSS and JavaScript in separated files: Example: <!doctype html> <html> <head> <meta charset='utf-8'> <title>Example HTML, CSS and JavaScript (Same File)</title> <!-- Your CSS code goes here --> <style> body { background-color: linen } </style> </head> <body> <h1>Big Title...</h1> <!-- You can put your JavaScript code inside head but I prefer putting it here --> <script> alert('Hello, world!'); </script> </body> </html> But if you are making a bigger project it is better to put HTML, CSS and JavaScript in it's own file. Example: ... CSS file ... body{ background-color: linen } ... JavaScript file ... alert('Hello, world!') ... HTML file ... <!doctype html> <html> <head> <meta charset='utf-8'> <title>Example HTML, CSS and JavaScript (Same File)</title> <!-- link your CSS file like this--> <link rel='stylesheet' href='path/to/css/file'> </head> <body> <h1>Big Title...</h1> <!-- link your JavaScript file like this (you can put this in the head too) --> <script src='path/to/javascript/file'></script> </body> </html> Hope this helps
18th Apr 2018, 9:09 AM
Ulisses Cruz
Ulisses Cruz - avatar
0
Ok, separate, but how? Three different files?
18th Apr 2018, 7:12 AM
Arthur P
Arthur P - avatar
- 1
If you have not learned these 3 language program (HTML, CSS and JavaScript). You must go to Learn> HTML, CSS or JavaScript to do exercises.
17th Apr 2018, 1:11 PM
program
program - avatar