0
How to make Html file work with a Css or JavaScript code together
i have an already made html file, so i want to add a Css script with it inorder to modify the html script but the code wont Run as modified. please Help me
2 Respostas
+ 2
If you are using external files, you can Reference the CSS stylesheet and JS script in the HTML file.
E.g.
<link rel="stylesheet" type="text/css" href="style.css">
<script src="script.js"></script>
Else, you can add the CSS styles and JS script in the header of the web page.
E.g.
<style>
#barn {text-decoration: underline}
</style>
<script>
function myFunction() {
document.getElementById("barn").innerHTML = "Sample Script";
}
</script>
+ 1
Go through and learn the HTML, CSS and JavaScript courses lol. And provide code so we can actually see the problem, just saying what's happening doesn't help you or us.