Jump to content

CSS in HTML


Norman

Recommended Posts

Hi, I've a noob question. I'm studying now CSS, and I want know if I can use an external file like CSS, and add some internal-CSS lines in my HTML file. So, both. Thanks in advance. Best regards,Norman.

Link to comment
Share on other sites

What's the point of having css in an external file and in your html code. It just makes it confusing. I would recommend only having css in one location. Either in your html or external file.

Link to comment
Share on other sites

CSS is short for cascade stylesheet, it means which one browser reads the second , browser will do it :) for exampleyour external CSS has a code body{ background-color : #123456}your internal CSS has a code body{background-color : #567890}browser read the external CSS first then read internal CSS , it will do the second :)

Link to comment
Share on other sites

What's the point of having css in an external file and in your html code. It just makes it confusing. I would recommend only having css in one location. Either in your html or external file.
Yes, I know this. Mine was just a question for knowledge. :)
CSS is short for cascade stylesheet, it means which one browser reads the second , browser will do it :) for exampleyour external CSS has a code body{ background-color : #123456}your internal CSS has a code body{background-color : #567890}browser read the external CSS first then read internal CSS , it will do the second :blink:
Ah, ok, now I've understand what you meant. Sorry but my english isn't so good! :) Thanks again.
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...