Topic: Question regarding cleaning up HTML code Pages that link to <a href="https://ozoneasylum.com/backlink?for=10642" title="Pages that link to Topic: Question regarding cleaning up HTML code" rel="nofollow" >Topic: Question regarding cleaning up HTML code\

 
Author Thread
pshopuser
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2001

IP logged posted posted 12-14-2001 09:26 Edit Quote

Hello, is there any program that'll make HTML code compact? That is, take out double spaces (or single), needless chars. etc? Thanks!

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 12-14-2001 11:45 Edit Quote

pshopuser: I suppose it depends on what you want to remove. In general I would suggest using HTMLTidy:
www.w3.org/People/Raggett/tidy

If I could see your code I'd have a better idea.

Emps


You're my wife now Dave

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 12-14-2001 14:52 Edit Quote

Of course, you could always just code it neatly the 1st time around




vogonpoet
Maniac (V) Mad Scientist

From: Mi, USA
Insane since: Aug 2000

IP logged posted posted 12-15-2001 00:32 Edit Quote

DL !!!! you dont mean "learn to write html correctly do you?" *looks shocked* my my.... what has the world come too? ~Vp~

NoJive
Maniac (V) Inmate

From: The Land of one Headlight on.
Insane since: May 2001

IP logged posted posted 12-16-2001 17:41 Edit Quote

If this is off topic... feel free to delete.

I've been wondering about basic html. Hmmm... how to say this??? Without all the bells & whistles, css, java etc.
just how limited is basic html? Can one realistically put together a 'presentable & functional' page using only html? ya... I think that's what i was trying to say %-]

thnx

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

IP logged posted posted 12-16-2001 21:36 Edit Quote

Yes, you can put together a 'presentable & functional' page using only html...


NoJive
Maniac (V) Inmate

From: The Land of one Headlight on.
Insane since: May 2001

IP logged posted posted 12-16-2001 22:29 Edit Quote

Thanx. ^^

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 12-16-2001 22:39 Edit Quote

Hmm, but don't consider CSS a bell or whistle, it should go hand in hand with HTML (or XHTML).

Use HTML for organizing the content.
Use CSS for specifying how to display the content so that it's visually appealing.

Try not to mix up the technologies with their purposes, HTML shouldn't be used for visual presentation and CSS shouldn't (and can't, to my knowledge) contain any content that the viewer is meant to see.

[This message has been edited by Slime (edited 12-17-2001).]

NoJive
Maniac (V) Inmate

From: The Land of one Headlight on.
Insane since: May 2001

IP logged posted posted 12-17-2001 06:46 Edit Quote

Slime... I have a small book on basic html. I also have 'FP'...which from what I gather here abouts is the worst of the wysiwig's... so my thinking was/is... that I'd try, for the first time, to put together something embarassingly simple in order to get an understanding of the basics.

So are you saying it would be 'wise' to learn css at the same time?

As far as 'fp' goes, I've looked at it a couple of times but haven't even tried it...

thnx

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

IP logged posted posted 12-17-2001 19:56 Edit Quote

Yes, it would be wise to lear CSS at the same time. And not to mention a little bit of DHTML & JavaScript...


NoJive
Maniac (V) Inmate

From: The Land of one Headlight on.
Insane since: May 2001

IP logged posted posted 12-17-2001 20:43 Edit Quote

Think my plate is getting pretty full here! <lol>

Brian Sexton
Nervous Wreck (II) Inmate

From: Sunnyvale, California (USA)
Insane since: Nov 2001

IP logged posted posted 12-18-2001 10:38 Edit Quote

> Think my plate is getting pretty full here! <lol>

Don't let yourself be overwhelmed; DHTML is really just a way of using a scripting language such as JavaScript with HTML and CSS. If you are feeling a bit overwhelmed, I recommend proceeding as follows:

1. Learn HTML structure (DOCTYPE, head, body, paragraphs, lists, etc.) without paying much mind to fonts, colors, and element positioning.

2. THEN learn CSS; once you know about HTML elements, you should be able to grasp CSS fairly easily since it is simply used to define their attributes.

3. Once you know HTML and CSS, learn the basics of JavaScript--the syntax, common functions, etc.

4. Learn DHTML? Not really! You see... you will already know HTML, CSS, and JavaScript, so all you will need to do after that is read up on--or snoop--objects then modify away to position and reposition them and more.

Just take small steps and don't get ahead of yourself and you should be fine.

NoJive
Maniac (V) Inmate

From: The Land of one Headlight on.
Insane since: May 2001

IP logged posted posted 12-18-2001 13:23 Edit Quote

Hey there Brian...thanx for that. Will use that as a guide. I was reading the 'tables' tutorial over at the GN... a bit mind twisting for sure... well for *my* brain anyway. Then I read a CSS link Emps posted and thought, well hey I don't have to learn tables... if I learn CSS. Then my brain crashed.

thanx again.

Perfect Thunder
Paranoid (IV) Inmate

From: Milwaukee
Insane since: Oct 2001

IP logged posted posted 12-18-2001 15:25 Edit Quote

Slime: look up the "before" and "after" pseudoclasses -- they let you put text content in CSS. Also, by using background-image, you can specify image content in CSS. The result? Greater control over what content different users see. Say you have a lot of decorative images that would be meaningless to a text-to-speech program; you can make them all background images specified in CSS. Say you have text that you only want full-featured browsers to display -- use "after" to specify it in the CSS.

Naturally, anything that's essential to your content should live in your HTML. (And I just recently figured this all out, so I haven't put it all into practice yet...)



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu