Hello, Should HTML & CSS Code be written together or separated?
AusQB New Member Mar 22, 2009 #2 It is good practice to put the CSS code in a separate file and link it to the HTML page(s). That way you can manage the styles from that page without having to change all the elements which might share a style class.
It is good practice to put the CSS code in a separate file and link it to the HTML page(s). That way you can manage the styles from that page without having to change all the elements which might share a style class.
conor New Member Mar 22, 2009 #3 Also if you have an external stye sheet the browser caches it, where as if you have your style within your page it gets processed each time.
Also if you have an external stye sheet the browser caches it, where as if you have your style within your page it gets processed each time.