Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
HumbleMobo

Question!

I am slightly new to coding and I've noticed something.  When in HTML and you have tags and what not, how come when you stylize a page with the CSS, why is the default white?  With no color tags in CSS it defaults to white, I know this is a ridiculous question but does anyone have an answer to it? 

because its a standart that text is displayed black on white. therefore the page is white and the text is black.

simple as that :)

Recommended Posts

Posted · Original PosterOP

I am slightly new to coding and I've noticed something.  When in HTML and you have tags and what not, how come when you stylize a page with the CSS, why is the default white?  With no color tags in CSS it defaults to white, I know this is a ridiculous question but does anyone have an answer to it? 


I'm playing my Xbone on 3 LG Curved monitors-No one ever

Please, read CoC it helps, it helped me it should help you-Every competent member

Resident bad pun maker.....please excuse them

Link to post
Share on other sites

Moved to Programming and Software Design.


"It pays to keep an open mind, but not so open your brains fall out." - Carl Sagan.

"If you place a piece of bread somewhere on Earth, and another one on that point's antipodes, well you made yourself an Earth-sandwich." - Michael from Vsauce.

Link to post
Share on other sites

because default is blank, and we most commonly associate blank with white. whether this is due in large to paper being white, or having been white for a very long time, or anything else i cannot say.

 

But blank is "white space" to us.

That and default is "blank"


Updated 2020 Build || 3700X || H115i pro || EVGA 2080 Super XC || 32gb HyperX Predator 3200mhz || NZXT h710 || Corsair RM750x || Beyerdynamic DT990 + Focusrite Baby Scarlett + MXL 770 || MSI MAG271cqr + Acer k272hulbmiip || 970 evo 1tb + 860 evo 1tb + 240gb kingston A2000  + ~1tb rando ssds + 1tb blue spinny boi ||

Link to post
Share on other sites
Posted · Best Answer

I am slightly new to coding and I've noticed something.  When in HTML and you have tags and what not, how come when you stylize a page with the CSS, why is the default white?  With no color tags in CSS it defaults to white, I know this is a ridiculous question but does anyone have an answer to it? 

because its a standart that text is displayed black on white. therefore the page is white and the text is black.

simple as that :)


~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites
Posted · Original PosterOP

Moved to Programming and Software Design.

Thank you


I'm playing my Xbone on 3 LG Curved monitors-No one ever

Please, read CoC it helps, it helped me it should help you-Every competent member

Resident bad pun maker.....please excuse them

Link to post
Share on other sites
Posted · Original PosterOP

because its a standart that text is displayed black on white. therefore the page is white and the text is black.

simple as that :)

Ah!  I knew you'd have the answer, I meant to "Mention" you in the original post.


I'm playing my Xbone on 3 LG Curved monitors-No one ever

Please, read CoC it helps, it helped me it should help you-Every competent member

Resident bad pun maker.....please excuse them

Link to post
Share on other sites
Posted · Original PosterOP

I know the answer, but I don't like partisan behavior.

What?


I'm playing my Xbone on 3 LG Curved monitors-No one ever

Please, read CoC it helps, it helped me it should help you-Every competent member

Resident bad pun maker.....please excuse them

Link to post
Share on other sites

I know the answer, but I don't like partisan behavior.

what is that supposed to mean ?


~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

I know the answer, but I don't like partisan behavior.

 

This was a pointless post then.

 

But yes,

because its a standart that text is displayed black on white. therefore the page is white and the text is black.

simple as that :)

 

I don't believe it can be altered either.


CPU: Intel Core i5-4460; MOBO: ASRock H97M-PRO4; RAM: 8GB G.Skill DDR3 @ 1600MHz; SSD: A-Data SP600 128GB; HDD: Seagate Barracuda 1TB; GPU: Sapphire Nitro R9 380 4GB; PSU: Seasonic G Series 550W; Case: Thermaltake Core V21 w/ AF140 blue LED fan (exhaust); Monitor: Acer H226HQLBid 21.5" 60Hz 5ms IPS (GTG) HDMI

Link to post
Share on other sites

I know the answer, but I don't like partisan behavior.

 

Funny  :P


Tech News Posting Guidelines - READ BEFORE POSTING | Community Standards | Forum Staff

LTT Folding Users Tips, Tricks and FAQ | F@H Contribution | My Rig | Project Steamroller

 

Spoiler

 †  

 

Character is like a Tree and Reputation like its Shadow. The Shadow is what we think of it; The Tree is the Real thing.  ~ Abraham Lincoln

You have enemies? Good. That means you've stood up for something, sometime in your life.  ~ Winston Churchill

Docendo discimus - "the best way to learn is to teach" ~ Benjamin Jantz

 

I am a StarCitizen are you? My ships: Aegis Eclipse, Aegis Sabre, Aegis Gladius, Aopoa Nox, KI P52 Merlin, KI P72 Archimedes and the RSI Constellation Aquila.

 

My Phones are a Nokia Lumia 925 with WM10 and a Microsoft Lumia 950 XL with WM10 running the Fast Ring insider updates. Broke :(

Samsung Note 9 and a Samsung S9+

 

About Myself:   https://linustechtips.com/main/profile/229093-sansvarnic/?tab=field_core_pfield_46

 

 CHRISTIAN MEMBER 

 

 

Link to post
Share on other sites

This was a pointless post then.

 

But yes,

 

I don't believe it can be altered either.

change the background ? of course you can !  thats what css is for !  (hehe.. even in html you can. but thats old and obselete)


~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

change the background ? of course you can !  thats what css is for !  (hehe.. even in html you can. but thats old and obselete)

 

Sorry for the confusion! I meant altar the background or html so it's different on start-up. Correct me if I'm wrong though. >.<


CPU: Intel Core i5-4460; MOBO: ASRock H97M-PRO4; RAM: 8GB G.Skill DDR3 @ 1600MHz; SSD: A-Data SP600 128GB; HDD: Seagate Barracuda 1TB; GPU: Sapphire Nitro R9 380 4GB; PSU: Seasonic G Series 550W; Case: Thermaltake Core V21 w/ AF140 blue LED fan (exhaust); Monitor: Acer H226HQLBid 21.5" 60Hz 5ms IPS (GTG) HDMI

Link to post
Share on other sites

Sorry for the confusion! I meant altar the background or html so it's different on start-up. Correct me if I'm wrong though. >.<

without any kind of css or other modification. just a plain basic html webpage ?

no that would be default. you need to specify the change if you want it to happen.


~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

change the background ? of course you can !  thats what css is for !  (hehe.. even in html you can. but thats old and obselete)

 

ew I've only changed background colors in my .html

 

I prefer CSS for the more detailed styling and for refining things, and use the general styling commands in my main document. Personal preference tho i guess.


CPU: Intel i5-2400 Mobo: ASUS Maximus IV Gene-Z RAM: 8GB G.Skill DDR3 1333MHz GPU: Sapphire R9 280x Tri-X Case Corsair Obsidian Series 350D PSU: EVGA 500w 80+ Certified

Link to post
Share on other sites

ew I've only changed background colors in my .html

 

I prefer CSS for the more detailed styling and for refining things, and use the general styling commands in my main document. Personal preference tho i guess.

yeah but it makes your page invalid to the w3c if you use html style css in the html


~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


×