Css

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

Halbarad

Established Member
Impact
0
hi, i know HTML very good. and now ppl are saying i should learn CSS. But i think i can do just the same with HTML. Can you ppl give me the positive points of CSS
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
its good for creating advanced rollovers and those dashed/dotted/etc borders you see

you should learn it its good for other things aswell
 
0
Close
By using CSS you can separate the content from the formatting, making the change of appereance much easier.

Let me give you an example:

If you were to have ten paragraphs formatted to Verdana, size 2, your code would be:

Code:
<p><font color="#CC0000" size="2" face="Verdana">Paragraph one</font></p>
<p><font color="#CC0000" size="2" face="Verdana">Paragraph two</font></p>
...
<p><font color="#CC0000" size="2" face="Verdana">Paragraph twenty</font></p>

Now, if you wanted to change it to, let's say Times New Roman, you would have to change all of the font tags accordingly.

With CSS, you define a class:

Code:
.text {
font: 10px Verdana;
color: #CC0000;
}

and then apply it to the paragraphs:

Code:
<p class="text">Paragraph one</p>
<p class="text">Paragraph two</p>
..
<p class="text">Paragraph twenty</p>

Any change to the appereance can be made by simply modifying the CSS style:

Code:
.text {
font: 20px "Times New Roman";
color:#0000CC;
}

The font tag is deprecated and not included in the XHTML specification.
The future of web design is in using CSS-based layouts instead of tables.

And many other reasons, which i can't remember right now.
 
Last edited:
0
Close
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back