Jump to content
xisto Community
solankyno1

Css Or Html Tags Which is better to use????

Recommended Posts

Dear friends,
I am new to web site designing. I am using NVU for creating my web pages. It has a option in which we can select that the editor will use CSS or it will use html tags for coding of the page. For example - If I want to make the text bold then if tag is used the code will be

<b>Your text</b>

and if the CSS is used the text will be

<span style="font-weight: bold;">Your text</span>

. Please suggest me which option I should choose to make my web page standard to modern HTML standards.
Thanks in advance.

Share this post


Link to post
Share on other sites

Well...CSS isn't meant to stand alone. It's supposed to supplement HTML. I generally use the <b></b>...

Share this post


Link to post
Share on other sites

That depends on if you only want to change the font, if this is the case use HTML, but if you are planning a site with a large nuber of pages CSS will make formating easier, by using an external style sheet and linking to it from your pages you can instantly transform large numbers of pages by only changing one thing.I hope this has helped you.

Share this post


Link to post
Share on other sites

That depends on if you only want to change the font, if this is the case use HTML, but if you are planning a site with a large nuber of pages CSS will make formating easier, by using an external style sheet and linking to it from your pages you can instantly transform large numbers of pages by only changing one thing.
I hope this has helped you.


Well...CSS isn't meant to stand alone. It's supposed to supplement HTML. I generally use the <b></b>...

Thanks for the help. Now I think I have to maintain proper balance in HTML tags and CSS.

Share this post


Link to post
Share on other sites

i've always only used css for doing stuff that are not normally done with regular html. like i wouldn't use it for doing font colors, but i would use it if i wanted to change the background color of the text. i find its best use is to do stuff that html simply can't do.

Share this post


Link to post
Share on other sites

I use CSS for everything it is possible to use it for! I can't see why anyone WOULDNT want to use it on their site. Cascading Style Sheets were introduced to provide cleaner, shorter coding and that is exactly what it does... Some people say its not "backwards compatible", but I mean, at the end of the day if you use an outdated browser its your fault really, isn't it?

Share this post


Link to post
Share on other sites

You have to choose the CSS solution.

All presentation must be done by CSS.

Bold is only presentation, so it must be realised by CSS.

 

(X)HTML is only for semantic. For example you can specify that your text is important puting it between <strong> tags. That would be much more interesting than using bold, because a text client and an oral client will ignore the bold, but not the strong (for example, the oral will insist on this text...)

Share this post


Link to post
Share on other sites

You have to choose the CSS solution.

All presentation must be done by CSS.

Bold is only presentation, so it must be realised by CSS.

 

(X)HTML is only for semantic. For example you can specify that your text is important puting it between <strong> tags. That would be much more interesting than using bold, because a text client and an oral client will ignore the bold, but not the strong (for example, the oral will insist on this text...)

Now I am also agree to your view. I have now starting to learn CSS for using it in my website.

Share this post


Link to post
Share on other sites

CSS is probably better...But sometimes when you want like a E.G dfferent colour bol you can not get it, it sort of has a set color,size,font fmaily etc.....But I personally use a css code for everything because it is really good and really does make your page look 10x better.I learnt about CSS and HTML together so I have been using it as much as and as long as using HTML.

Share this post


Link to post
Share on other sites

If you can separate the content of the page (the actual information) from the presentation (the appearance), things suddenly become very manageable.
A List Apart has an article on the subject of separation of content and presentation which is enlightening. You could also read about media-specific stylesheets on the same site for another benefit to using CSS.
IF the project is small and it won't need to be accessible or maintained, then it might be more work than it's worth. For example, writing a custom HTML wallpaper for your aunt's Windows 98 computer. But in general, it's very much worth the effort. Plus, it's fun!

Share this post


Link to post
Share on other sites

CSS is more advance than HTML. And just by using CSS, you can create professional looking websites and a website that follows the w3c.org's rules about XHTML or HTML. Check out my site http://www.karlo.co.nr/ I'm doing the best I can so that it will be a XHTML certified.

Share this post


Link to post
Share on other sites

Very good site Karlo. Looks truly professional.

 

CSS is more advance than HTML. And just by using CSS, you can create professional looking websites and a website that follows the w3c.org's rules about XHTML or HTML. Check out my site http://www.karlo.co.nr/ I'm doing the best I can so that it will be a XHTML certified.

<{POST_SNAPBACK}>

Share this post


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

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.