Jump to content

what part of the page names and titles and things used to pull the style sheet up


number47

Recommended Posts

Having a hard time getting the CSS and Javascript files referred to, how the work together into my head.

 

When naming text files of html, and having it in a folder along with css and javascript.

 

It seems like when building a site with the (great) web building tutorial that I like so much. I can vary a few attributes and things like that. It seems like every time I set it up with anything other than "demoweb" "index dot html" title of "our company" as instructed I get dodgy results. I also seem to have hit and miss PHP results. I am still plugin away at this if someone knows what I mean I would appreciate it.

 

to put the question another way: 1 how many words in the naming of the files in site folders can you have? and 2. Does the name of the file dictate weather the css is recalled or linked?, 3. if is there a way to have multiple scripting and css sheets named in the folder? here is where I am studying from lately- Web Building

Link to comment
Share on other sites

The names of the files don't matter. Here is how to link CSS files:

http://www.w3schools.com/css/css_howto.asp

 

And is you scroll down on this page it shows how to link Javascript files:

http://www.w3schools.com/js/js_whereto.asp

 

What matters is the location of the files relative to the HTML file.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...