Peter1990 Posted June 30, 2020 Share Posted June 30, 2020 Hello, After I made few tutorials on w3schools.com, I am running on my first project. For now I need to create sub pages for my website. So, I would like to ask you, what is the best way to to this? I watched few video tutorials on Youtube. One way is to create with links, using <a href="link to the page">link</a>. So, my question here is the following: what about CSS? For each HTML page I need CSS code to style the HTML code. So, when you create maybe 20 (or more) sub pages, for each HTML you need CSS code too (20 or more). Whether it will be too much code? Is they any way to reuse the same CSS code?, to display in the all HTML sub pages? thank you in advance. Link to comment Share on other sites More sharing options...
JMRKER Posted July 3, 2020 Share Posted July 3, 2020 Use the link to your common CSS style sheet: <link rel="stylesheet" href="common.css" media="screen"> BTW, welcome to the forums. Link to comment Share on other sites More sharing options...
Makwana Prahlad Posted August 11, 2020 Share Posted August 11, 2020 <li><a href="more.html">Overview</a></li> <li><a href="more.html">Small Business</a><ul> <li><a href="more.html">Overview</a></li> <li><a href="more.html">Small Business</a></li> <li class="last"><a href="more.html">Corporate</a></li> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now