Tip:
Highlight text to annotate it
X
Hello everyone welcome back to Geek Disorder's
web series over a simple but css3 JavaScript and jQuery this is like I'll
be walking through the series
okay 0 today we're going to go on over
how to code comments white space it your
web pages so what is the comment
well or comet low is something that appears
between you find a
orders to right here I'll
if his between this that the opening of a comma
and I can stop this
is a comments and this is the closing collect comment
okay the
the browser ignores comments a.m.
a comic used to explain or describe
code not be confusing to someone if they were take a look at your web page
a it could be use the comment out
elements arm your web page for testing say
I wanted to see with our page will look like
if I remove this header one here so I could just
common Italian like this and that we're not shopping a web page
I can actually show you that working
if you notice right here above my head when I have this comment and
like away go ahead
and launches in Firefox apps
course you do have to save this for some will save it
will save my desktop and I'm change the name
but I am gonna head thought HTML to the end of it so is a web page
UK there we go all right now
are just gonna run and a launches in Firefox
there we go I have my header and my paragraph here
and you see that comment right here this is a comment
is not shown. the phone to civil with a jewel-like without this header
all I have to do is comment doubt
such as if you notice when I open my comment everything turn green
a that means if I don't close it
well
and I keep forgettin to save try again that is gonna show up
you know I didn't close my a my header here
Meyer comment it
comment felt everything after that so
the pics that I just close my comment and
at did not save again do real well they
are a year ago you see my haters gonna
so comments can use be used for testing purposes
to see what things look like if you take 'em al and such
so go ahead and remove this comment and more about this one ago
okay a a comic can span
multiple lines or you can be on a single
so if are more to say a
Olympic comment here and say
just is body mile
were each okay
I can make a comment just one line
or I can do this is
a call or
or them online and there we go
so a comment includes
everything up until the it to kill the comment unit that covers
multiple lines our um the next they were the cover is
white space in your web page what is white space
a wall like space the consist of characters
like girl I returned character every time you hit the enter key that's a lot
return character
extra spaces so ever to hit the spacebar that's why space
the tap characters a few if you tap inside your
your web page that's all white space okay
I'll so old all this
the sentencing right here that the staff to do
that's why space I'll when I hit the Return key
this is white space so I've got white space right here
a and such in the course
if I was too
like do this for some reason you can have multiple muscle online
I follows to make another header here
and
Kloza
peace spaces here that's what space
okay a white spaces the is ignored by the browser also
it can be used in deadlines a it can be used to separate
elements from one another if you put them on the same line
a its good coding practiced in debt
makes your web page a lot easier to read but you do not want to overuse
white space arm so
because it does add to your all sides um
which will be the web pages that really doesn't matter but we're
if you lookit like Google's
doll whose and you know any
big search engine a most the time
most those companies have a program that removes all the white space from the
cold after they get done
coding a web page or or dynamically trading it
the reason being is even though the white space
takes a not that much room when you have millions and billions of web pages
that really adds up so ok it will this is Tim
covering comments on MySpace a I hope you enjoy the video if you like our
content your geek disorder
Lisa scrub and athletic at all see you next yr