Where should css go in .html page? -


i have index.html page , style.css file.

i have style class called .slider , style class called .logo. should put both .slider , .logo inside style.css page or should put .slider in index.html , .logo inside .css?

im asking because dont know if should put styles related 1 page inside global style.css or should put inline in page applies to?

styles can go in 1 of 3 places.

  1. inline on element itself
  2. in html page
  3. in separate file

i suggest either putting in <style> tag in <head> of html or putting in separate file, either work well. having styles in separate file means reuse styles on page if needed.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -