Jump to content
Sign in to follow this  
Peter1990

What is the best way to create subpages?

Recommended Posts

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.

 

 

 

 

Share this post


Link to post
Share on other sites

Use the link to your common CSS style sheet:

<link rel="stylesheet" href="common.css" media="screen">

 

BTW, welcome to the forums. :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...