Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
hi guys.

how can i link a .css file to a .html file?
meanwhile i can write code with javascript and there is a question here:
how can i link javascript code to files above.

thanks in advance
Posted
Comments
Dave Kreskowiak 18-Oct-14 18:12pm    
What's your definition of "link" in this case?
Zebtec 18-Oct-14 19:13pm    
i meant making some connection
Dave Kreskowiak 18-Oct-14 19:42pm    
Considering there is no "connection" between pages of text, your question makes no sense.

Now, if you wanted to APPLY the CSS styles to the HTML, that's entirely different.
Zebtec 19-Oct-14 8:59am    
thanks guy.i received my answer.no need to your answer
Sergey Alexandrovich Kryukov 19-Oct-14 1:00am    
W3 documents wait for you...
—SA

I suggest you try this for your CSS:
http://bit.ly/1wUJqAe[^]

And the following for your Javascript query:

JavaScript Where To[^]
 
Share this answer
 
"There are three ways of inserting a style sheet:

External style sheet
Internal style sheet
Inline style"
See this page at W3Schools for detailed examples and explanation: [^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900