Now we've reached the point where we will start making a true website... Although wait a minute! First we will make a test version.
Creating a new fileAre you ready? If so, then open up notepad and fill in the standard tags for a website.
<html><head></head><body></body></html>
Does that seem to hard? Not exactly, but still, it may be a bit confusing-let's organise this code a little bit.
<html>
<head>
</head>
<body>
</body>
</html>
Is it still to messy and confusing? If that's true, then just, simply enough, make one more row-jump between every tag. Like this:
<html>
<head>
</head>
<body>
</body>
</html>
Now it can't possible be too hard, can it? Well, if it is-try to learn it anyway! This is standard for a HTML-file and will occur in every single file you see!
Now, save your file-with an html extension! And as this is a test-let's name the file "test":
test.htm
or
test.html
Note: I used to use the .htm extension but mostly use the .html nowadays. But don't you worry, it doesn't make any big difference-just that you may have to think of which extension you have used to all the files when you make links and stuff (which is why I recommend you using the same extension for every file you get).How does it look?Now, you have made your first script and saved it somewhere on your computor. Go to the
test.html's location and double-click it. A new webpage will open up. It's our test-page! Unfortunately, it's totaly empty, right? Now, exit the webpage by clicking the X-button in the upper right corner or leave it be (if you exit it now you will have to open it again, later, while just having to "reload page" when made changes to your script). Now, go back to the files location, again. Right-click the file and open it with notepad. Now let's do some actual changes to your script!
Create some content...is exactly what we are going to do right now! As I told you lastly in the earlier paragraph-
how does it look?-open up your file with notepad. Done? Good! Now let's make some content for your test-page. What should we put in? Why don't we use the traditional
hello world and maybe also
Lorem Ipsum:
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<p>Hello World!</p>
</body>
</html>
Seem okay? Now check your webpage again-go to where the file is located and double-click it. A new webpage will open up and-yes-it's yours! Now can you see something? Of course! It says "
Hello World". Now let's go over to something a little bit more complicated-
Lorem Ipsum, that is.
Note: Did you notice <title> -tags between the <head> -tags? This is what will appear in the namelist of the web browser (if you look now it will probably say something about RMRK.net). Cool? This allows you to make the site your
site.------
Note: Do you remember the <p> -tags? I hope so-paragraphs are kind of important to a website! (If you don't remember you can check Kesshomaru's HTML school! Lesson 4, tags and their functions
.)Okay, here comes the harder bit-the traditional
Lorem Ipsum. (Actually this is kind of unnecessary as the site doesn't even have layout yet-it's just letters and words.)
<html>
<head>
<title>Lorem Ipsum</title>
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec imperdiet fermentum tellus. Mauris egestas nisl quis purus. Vivamus laoreet nibh iaculis dui. Suspendisse pulvinar, metus ac condimentum suscipit, mauris lectus ultrices ligula, vitae cursus neque felis et wisi. In hendrerit turpis ut quam. Nam id sapien eu metus gravida dictum. Suspendisse mattis consequat turpis. Nullam eleifend, eros sit amet faucibus rhoncus, justo tortor scelerisque nulla, eget mollis urna dolor et diam. Aliquam dui eros, euismod ac, scelerisque non, pharetra eu, ligula. Ut id felis. Ut in pede sed ante lobortis commodo. Morbi aliquam consectetuer ante. Quisque tempus mattis orci. Aenean fringilla, tortor ac pharetra interdum, sapien neque ultrices mauris, eget pharetra odio quam non enim. Fusce venenatis lacus. Sed scelerisque tortor et eros. Suspendisse tempor, est et venenatis hendrerit, est tortor auctor pede, eu ultricies magna eros eget quam.</p>
<p>Proin eu felis. Curabitur ipsum tortor, auctor sit amet, sollicitudin eu, lobortis sed, leo. Suspendisse a odio vel pede commodo mollis. Sed sagittis nibh id ante. Integer iaculis lacus. Proin ut pede eu lectus tristique porttitor. Duis sed sapien. Aenean risus nulla, facilisis ut, placerat eu, convallis et, pede. Etiam odio odio, suscipit eget, bibendum a, venenatis et, urna. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut vel mauris. Nam at lectus eget ante lobortis lobortis. Cras erat nulla, dictum nec, placerat aliquet, semper ut, turpis. Ut condimentum. Vivamus est tellus, rhoncus at, lacinia euismod, adipiscing vestibulum, turpis. Sed sed lectus. Mauris pellentesque interdum ante. Curabitur ut magna quis nunc vehicula pellentesque.</p>
</body>
</html>
Note: Is it weird? Don't understand what it says? Well well, I'll tell you a little bit, for now-the rest will be uncovered in later lessons, believe me. Lorem Ipsum is something in latin, I don't really know what (yet) so I can't tell you that. There are many, many paragraphs (of which I only know 10) and are often used by scripters needing some "pure crap" to fill their paragraphs with when they're making new layouts or maybe just need something to put in-maybe it feels to empty otherwise. As I said-more of this will be explained in the later lesson dedicated entirely to "Lorem Ipsum".
Now, you got a lot of content (at least if you chose "
Lorem Ipsum), so what do you say about saving your file and checking it's new appearence? How does it look? Does it look good? Well, maybe not yet... But soon! I promise!"