Is it possible to completely ignore white space in html?
for example I would like to display button1 and button2 next to each other with no gap. It would be nice if I could make my code readable as follows
instead of
is there perhaps a tag I can wrap around them to make the whitespace be ignored?
Obviously this is a simple example, but you can see the readability issue when there are 20 buttons each with lots of attributes.
Thanks
for example I would like to display button1 and button2 next to each other with no gap. It would be nice if I could make my code readable as follows
Code:
<div id="top_bar">
<img src="button1.jpg"/>
<img src="button2.jpg/>
<div/>
instead of
Code:
<div id="top_bar">
<img src="button1.jpg"/><img src="button2.jpg/>
<div/>
is there perhaps a tag I can wrap around them to make the whitespace be ignored?
Obviously this is a simple example, but you can see the readability issue when there are 20 buttons each with lots of attributes.
Thanks