+ 1
how to combine programming languages html, css and js on the laptop for make a website?
i'm using xampp
4 Respuestas
+ 3
All files written in notepad and use same location to save all of these
Html file:-
<html>
<head>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="greet.js"></script>
<title>Sololearn</title>
<body>
<input type="button" value="click me" onclick="greet();"></input>
</body>
</html>
save as index.html
CSS File:-
body{
background-color:#123456;
}
save as style.css
JavaScript File:-
function greet(){
alert("Hello! Friend");
}
save as greet.js
now open index.html file in browser
+ 1
you dont need xampp to use front end technologies. just create html file use <link> tag to add css and <script> to add js. Voila
+ 1
ooo, i understand. ok thx for your answer
+ 1
nice.. @avnish