HeadingsA text can be assigned heading-tags to make-that's right-a heading. You can use <h1> to <h6> where <h1> is the largest and <h6> implies a very small text.
4<h1>the largest heading</h1>
<h2>a larger heading</h2>
<h3>a large heading</h3>
<h4>a small heading</h4>
<h5>a smaller heading</h5>
<h6>the smallest heading</h6>
Note
4: The sizes of these tags can be changed at anytime by using a CSS-Cascading Style Sheet. This must first be linked by the website you want the new settings to occur. Read more about this in Kesshomaru's CSS school (coming soon).
ParagraphsParagraphs are used when your putting text to your website.
5 A paragraph starts with a <p>-tag and ends with a </p>. This tag isn't much useful as it works just fine by just typing directly into the code, but the code looks more organised and you will easier find them when you need to change the text! And also, if you want to change the text's values in CSS, you will have to use paragraphs as the new settings won't occur while typing directly-without any tags at all!
<p>a simple paragraph</p>
<p>another paragraph</p>
Spaces and commentsThere are several types of spaces-that is, regular space and line jumping space. Also there's comments which are only visible in the HTML-file. First of all, spaces!
A space is, simply enough, made by pressing the-that's right-space button!
:O x3
But one thing about scripting HTML is that the space is used in many ways. (Is it, really?)
First of all, the scripting space! Many scripters put in several spaces before writing the actual scripts-and that's on almost every line (!)-just to make the script more organised. This is a good thing-if you're willing to spend hours and hours of putting the extra bother to put in several spaces every now and day-which I really think you should think about doing BEFORE you start scripting!
Second of all you can use them as regular spaces in paragraphs-although you can only post on space at a time. To print more than just one space you will have to write something before you do, or simply put in a piece of of code.
Just don't forget the ; at the end-if you don't type it, the code won't work!
Also, nbsp stand for no breaking space.
Also, there's a "space" when you jump to another row. But to do this, it's not really like a regular space where you can type one regular space but then ahve to put in a code-now you must do it for just even
one! Just simply put in the following piece of code to make a row-jump.
<br>
In regular HTML-up to the version 4.0-you didn't have to input an ending tag.
But, in the latest version-XHTML, which stand for eXstensible Hyper Text Markup Language-it's important that
all tags is ended. "What? But the row-jump-tag doesn't have an ending tag! What should I do know!?" Is that what you're thinking right now? Don't panic! It's simple enough that a baby could do it! Just make an ending tag
in the regular tag. Do you get it? Well, if you don't, look at it this way-after the
r you have to put in a regular space (Did you hear!?) and then a slash. Let's try it, now:
<br />
Well done! That wasn't too hard, was it? See, I told you! Scripting HTML is easy! Just if you listen and learn!
Now, let's try a different kind of row-jumping. In this version you will be able to do the same as the tag we just went through-just a tiny difference of appearence. Instead of just jumping down a row, like the tag before, this will first jump down a row, then make a long, horisontal ruler through the entire site (or at least the current frame, read more of this later in the HTML school) and then jump even one more row. Isn't this amazing!? (Actually no, but you're still just n00bs yet... -_-') Now you're probably wondering how to do this, right? Well, don't worry, just look at the code box underneath!
<hr>
Isn't it betuiful? *crying happy tears* x3
Well well, just as the tag before you will have to have an ending tag fused into it. You remember what we did?
<hr />
Now you have your own horisontal ruler!
Back to reality! It's time to go over the functions of a comment. What is it? What does it do? Is there even a point with it? Of course it is! A comment can come in very handy when you have to remember what a piece of code actually does. Not so many n00bs or so does actually use this, but lots of talented scripters use this function!
So now, wondering how to insert a comment to a code? Don't worry-here it comes!
<!-- insert comment here -->
Just do as the example says and insert your comment instead of the text and then you have a comment! This won't be seen by anyone other than you or who may possibly use your script.