Skip to content
Guest Big Announcement

HTML and CSS with notepad++(solved)

Featured Replies

So I am making a super simple HTML file as in "training". 

 

 

When I made a HTML file i wanted to add CSS code without typing the CSS code inside the HTML code, as in doing.

<link href="#" rel="stylesheets" type="text/css"

But I dont know how... I did a file and called it styles.css and made it.

(typed the css code inside styles.css).

<link href="styles.css" rel="stylesheets" type="text/css"

That didnt work either,

I even tried posting the hole link in href but it didn't work either.

 

Any ideas? 

 

If you anyother program for better and easier coding feel free to link me. i am using notepad++.

 

 

Thank you.

Updated by -khaled-

Solved by FafoWithMatar

  • Author

Whats the point of this code ? can you explain what task you are doing ?

Nothing really, I Just want to color and font text. but dont want to mix it with the HTML code.

Whats the point of this code ? can you explain what task you are doing ?

there is nothing wrong with the code, its just that i dont know how to connect them.(CSS and HTML)

Nothing really, I Just want to color and font text. but dont want to mix it with the HTML code.

there is nothing wrong with the code, its just that i dont know how to connect them.(CSS and HTML)

Wait

Nothing really, I Just want to color and font text. but dont want to mix it with the HTML code.

there is nothing wrong with the code, its just that i dont know how to connect them.(CSS and HTML)

Color and font text have a different syntax , the one in this post is for linking aka href

CSS is for styling of your HTML elements

Updated by TheArmKing

  • Author

Wait

Color and font text have a different syntax , the one in this post is for linking aka href

CSS is for styling of your HTML elements

yes i know, but what i want to type code in to different places... as in

 

index

https://gyazo.com/b08616ec58ee44340a7ee52a29da5929

 

css

https://gyazo.com/d59e9f1f9f5800af6bba869d729fb9ff

yes i know, but what i want to type code in to different places... as in

 

index

https://gyazo.com/b08616ec58ee44340a7ee52a29da5929

 

css

https://gyazo.com/d59e9f1f9f5800af6bba869d729fb9ff

You wanna join that?

 

CSS code or style.css syntax will work in your HTML one as well :)

  • Author

You wanna join that?

 

CSS code or style.css syntax will work in your HTML one as well :)

i think i am going to get a new program that auto links,

 

if i type my css code inside my HTML it gets messy

i think i am going to get a new program that auto links,

 

if i type my css code inside my HTML it gets messy

Hmm, but messy is the best. I think, linking the 'style.css' would be, the user has to click on the link, then it shows your coloured font text which is not convenient ( taking this as a scenario)

 

get a new program that links, or type CSS inside of the HTML code, it gets messy but thats that.

 

 

You can mention that program for others who might encounter the same problem :)

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.