It's really not recommended to use inline styles. Do not listen to the advice given in this video. There are other more efficient ways to differentiate h1-headings and all other tags.
@teltploek inline CSS can be useful in some situations though. For example, if you just want a small part of a bit of text to have a different color of font, you could add a span tag with an id or class and add that your .css file, but I find it a lot quicker to just use inline CSS to that small bit of text...
Also, if you want to send an automated email (with PHP for example) and you need to do some styling, inline CSS is the only way to properly style an email message.
1) I absolutely disagree. Of course it's "usefull" when you look at it from a lazy point of view, but laziness isn't really compatible with proper development, and will only cause problems for the team you're working with. If you've planned your project properly, you've already taken that part of text difference into consideration, and have already made the appropriate selector in your stylesheet. (To be continued...)
@bartjoboy (continued...) You need to keep HTML as structure minded as possible, and leave all the presentation bits in the external stylesheet. In other words: Always seperate these areas. It's also more scalable this way, say if you want to change the design completely. (To be continued...)
@bartjoboy Then you could just throw away the old stylesheet and replace it with a new one - in your case, you would also need to go in, and adjust every little inline rule, that someone found "usefull" at the time, because the didn't plan right, and was lazy at the time of development.
I don't see a valid argument in this context, sorry. (To be continued...)
@teltploek Ye alright, you got a point there.. it was probably because of laziness, hehe xD But I now see what you mean since I had to change the color styling of a website. They used inline CSS in a lot of spans.. I had to go into all (!) the HTML files (about 25 of them) and change the styling.. A lot of wasted time I could put into other projects (I am doing an internship at a web development company). I now never use inline CSS anymore in personal projects.. xD
@bartjoboy:hey im new to CSS.i just wana ask somthing if u dnt mind.In inline css its limited to tht single page but in outline css its applicable to all the pages, mi right?
@krishnankuta Almost. Inline CSS is only applicable for the element where you put the style parameter in. for example when you do <p style="something">text</p> the style is only for that P tag.
Outline CSS, so between te "style" tags, is for the whole page, so when you style a p tag, all the p tags in the page will inherit that style.
@bartjoboy 2) You're right about the e-mail part, but that also has to do with the fact, that there's a lot(!) of e-mail clients out there, that has a lot of different rules, when it comes to displaying HTML in e-mails. Therefore it's recommended that you go medieval when styling an e-mail, using older versions of HTML, and therefore also inline styles to be as compatible as possible - and even then, you can't be sure that things will turn out correctly for every client. (The end)
You good people never cease to amaze me, always helping humanity out like it ain no thing, and being nonchalant about it. F the haters they all got they're heads up they're butts like a very gay ostrich ...hetep
You good people never cease to amaze me, always helping humanity out like it ain no thing, and being nonchalant about it. F the haters they all got they're heads up they're butts like a very gay ostrich ...hetep
@tjv323 it does, but that's not specified. if u font add the h1 and p stuff the whole thing will come out 1 way. So it's just to make things more specific :)
Im making tutorials on games, programs and softwares, please check out my channel and videos i need views and SUBSCRIBERS !!! leave suggestion for tutorial you need and i will make it happen !!!
Yup, that's right, Inline CSS can be confusing, if you want to find a line of code you forgot to close.
But External CSS is better, because you can find the code fast, because it's aranged, instead of searching it like 4 hours, you find it in 5 minutes :).
well the good thing about CSS is that you can easily find it when you view the webpage. It would take like a couple of seconds to find that specific line, whereas it's a bit more confusing for external CSS if you only want to style a specific line, you'd have to go back and forth finding the specific name/id/span/div that you used. Idk...I guess it's just me.
aw, it didnt keep the spacing :(
draken4200 4 months ago
body { color: blue; background-color: red; }
That format is better to me.
draken4200 4 months ago
hmm just let me ask 1 question... why do you have 2 color background? that's pretty stupid...
Heetzy 10 months ago
It's really not recommended to use inline styles. Do not listen to the advice given in this video. There are other more efficient ways to differentiate h1-headings and all other tags.
teltploek 11 months ago
@teltploek inline CSS can be useful in some situations though. For example, if you just want a small part of a bit of text to have a different color of font, you could add a span tag with an id or class and add that your .css file, but I find it a lot quicker to just use inline CSS to that small bit of text...
Also, if you want to send an automated email (with PHP for example) and you need to do some styling, inline CSS is the only way to properly style an email message.
bartjoboy 9 months ago
@bartjoboy
1) I absolutely disagree. Of course it's "usefull" when you look at it from a lazy point of view, but laziness isn't really compatible with proper development, and will only cause problems for the team you're working with. If you've planned your project properly, you've already taken that part of text difference into consideration, and have already made the appropriate selector in your stylesheet. (To be continued...)
teltploek 8 months ago
@bartjoboy (continued...) You need to keep HTML as structure minded as possible, and leave all the presentation bits in the external stylesheet. In other words: Always seperate these areas. It's also more scalable this way, say if you want to change the design completely. (To be continued...)
teltploek 8 months ago
@bartjoboy Then you could just throw away the old stylesheet and replace it with a new one - in your case, you would also need to go in, and adjust every little inline rule, that someone found "usefull" at the time, because the didn't plan right, and was lazy at the time of development.
I don't see a valid argument in this context, sorry. (To be continued...)
teltploek 8 months ago
@teltploek Ye alright, you got a point there.. it was probably because of laziness, hehe xD But I now see what you mean since I had to change the color styling of a website. They used inline CSS in a lot of spans.. I had to go into all (!) the HTML files (about 25 of them) and change the styling.. A lot of wasted time I could put into other projects (I am doing an internship at a web development company). I now never use inline CSS anymore in personal projects.. xD
bartjoboy 8 months ago
@bartjoboy:hey im new to CSS.i just wana ask somthing if u dnt mind.In inline css its limited to tht single page but in outline css its applicable to all the pages, mi right?
krishnankuta 8 months ago
@krishnankuta Almost. Inline CSS is only applicable for the element where you put the style parameter in. for example when you do <p style="something">text</p> the style is only for that P tag.
Outline CSS, so between te "style" tags, is for the whole page, so when you style a p tag, all the p tags in the page will inherit that style.
bartjoboy 8 months ago
@bartjoboy 2) You're right about the e-mail part, but that also has to do with the fact, that there's a lot(!) of e-mail clients out there, that has a lot of different rules, when it comes to displaying HTML in e-mails. Therefore it's recommended that you go medieval when styling an e-mail, using older versions of HTML, and therefore also inline styles to be as compatible as possible - and even then, you can't be sure that things will turn out correctly for every client. (The end)
teltploek 8 months ago
Hi. Are the terms "Element" and "Selector" interchangeable? Just want to make sure I am understanding!
nilwon 1 year ago
Dude your tutorials are the freaking best! Thank you s much.
ThyReturner 1 year ago
You good people never cease to amaze me, always helping humanity out like it ain no thing, and being nonchalant about it. F the haters they all got they're heads up they're butts like a very gay ostrich ...hetep
codetherule 1 year ago 7
You good people never cease to amaze me, always helping humanity out like it ain no thing, and being nonchalant about it. F the haters they all got they're heads up they're butts like a very gay ostrich ...hetep
codetherule 1 year ago
@tjv323 it does, but that's not specified. if u font add the h1 and p stuff the whole thing will come out 1 way. So it's just to make things more specific :)
5trayProductions 1 year ago
you have style type="text/css" body, h1, p etcccc
wouldn't BODY cover h1 and p since they're all in the body?
tjv323 1 year ago
Im making tutorials on games, programs and softwares, please check out my channel and videos i need views and SUBSCRIBERS !!! leave suggestion for tutorial you need and i will make it happen !!!
ww,yotube,om/user/TMCTutorials
TMCTutorials 1 year ago
Is it me or is he talking a bit slow?
Have seen a lot of Java Tutorials and I'm a bit familiar with his voice.
Good Tutorial (as always).
altisw5 1 year ago
@wanna666b I totally agree. Link to an external file is efficient and effective.
mangoprojects 1 year ago
Thank you. Good tutorial. -behindvfx
mangoprojects 1 year ago
Excellent series of tutorials thanks!
lonecrow66 1 year ago
adminstalk. com
Al3lilive 1 year ago
you have good teaching ability.can u make a tutorial for j2ee(jax rs)??
thusuba 1 year ago
u have good tutorials, i appreciate a lot ... therefore i thank you for teaching me ...
just0408 1 year ago
Dude,your website ROCKS!!! =) thanks a lot
MrAlanshow 1 year ago
This is actually referred to as "Nesting elements" on the exams.
BufferOverflowAttack 2 years ago
Yup, that's right, Inline CSS can be confusing, if you want to find a line of code you forgot to close.
But External CSS is better, because you can find the code fast, because it's aranged, instead of searching it like 4 hours, you find it in 5 minutes :).
octa231 2 years ago
well the good thing about CSS is that you can easily find it when you view the webpage. It would take like a couple of seconds to find that specific line, whereas it's a bit more confusing for external CSS if you only want to style a specific line, you'd have to go back and forth finding the specific name/id/span/div that you used. Idk...I guess it's just me.
rbrtchng 2 years ago
Your voice is soooo mellow soft.
impulsive2urge 2 years ago 3
lol
tholithemba 2 years ago
not necessarily. It depends on what you want to do.
rbrtchng 2 years ago
Normally though, it is alot worse... even internal stylesheet is better than inline...
I perfer external to the max though =)
JustaFreak15 2 years ago
I think we need to register just to get through your website. thanks for sharing all your videos here. More power!
pingolluz 2 years ago
this was very help ful thnx! 5*
pivotmaster76 2 years ago
Thanks for sharing !
AlgeriaSon 2 years ago
thanks !!
Cemrotterdam 2 years ago 2
Cool tutorials man, yours are easy to follow..that tutvid guy speaks waay too fast.
glassprison01 2 years ago 3
Brilliant. Thank you for helping us.
dagger86 2 years ago
Does your website still exist?
megalicious1105 3 years ago
how do u make the words in notepad++ colored
leavemealone300435 3 years ago
This comment has received too many negative votes show
that aint notepad
KGTUCP 2 years ago
it's notepad++, a special notepad you can download and you have to save the file with the end like "file.html" to do that
thyd360pop 2 years ago 12
notepad ++ ;)
sirlancerbots 2 years ago
how do use an image as a background for heading?
tubeparker23 3 years ago
nigga its the same
Techhelpstudio 3 years ago
who says im a nigga?
tubeparker23 3 years ago
h1 {background-image:url('image.gif');}
moussaemad 3 years ago
I learned a great deal. Thanks!
athiria 3 years ago 2
yo and also do u say declaration or decoration?
vikramsince1993 3 years ago
declaration
StvnBrkbck 3 years ago
This is the third time!
vikramsince1993 3 years ago
css is a basic language
aspcajaye 3 years ago
What scheme was he using?
1AlexWorld1 3 years ago
XVRE
ArKaNeSSS 3 years ago