|
|
My HTML guide
NavigationPet CentralExplore Games Boards Shops News Link MeI would absolutely LOVE if you took my awesome button and put it somewhere, anywhere. Got to spread the news, right? And I made this button myself so I do not need to credit anyone with it. Isn't it pretty????
AffiesI officially have two affies!!! Yay.
Listed atI made it into the following directories, but I will find my way into others..... ![]()
CreditsWow. I have really no credits. I take full credit for this page. I'm pretty proud to have done this all by myself. Amazing! About meHey, I'm Skye. And yes that is the reason I spelled "sky" wrong in the name. I am a 14 year old girl who is totally addicted to neopets. But other than neopets, you can often find me lurking in my room reading. I absolutely love to read. And I'm not sorry to say, like so many other girls my age, I LOVE Twilight. Although one of my other favorites is This Last Dragonlord by Joanne Bertin. In addition to that I also enjoy playing the piano. I've been taking piano lessons for 6 years, although this year I quit, because I think I learned enough to teach myself. And I play the flute. Although unlike the piano I've only been playing for about 2 years, but I'm actually really good at it. So last year I joined the City Band in my city, and continuted it this year. The music is REALLY hard, but I just love to play in bands. A fairly recent addition to my list of things I enjoy doing, is watching anime shows. Ok, thats a little to broad, I have become totally addicted to Bleach, but eventually I plan to move onto other things. I have my friend to thank for the addiction, so large thanks to her for that. I'm part of the infinitely small group of people who actually like to go to school. I enjoy learning, simple as that. This year I'm heading into 9th grade. My favorite subject is math. Although I do have a fond love of science. Not all science, just chemistry. Which is the science class I'm going into this year. (yay!!) I also love french, although being only in French I, I can barely say anything beyond I like to play cards (which in case your wondering is "j'aime joues aux cartes" (:) I don't like sports. They bore me and I think theyre not worth the time or effort. The only sport I like is swimming. That's pretty much all there is about me. Intersting, isn't it? CounterOk, I probably didn't need a heading for that. But I do so love headings. (I probably should have put that in the about me section) This counter was taken from boingdragon(dot)com. |
![]() IntroductionHello people of Neopia or otherwise who just happened to stumble onto this page. Wow, that is one long starting sentence. But if you can't understand it, that's fine. I wrote it, and it confuses me. Ok, the reason your here. This is not a guide on how to fly, or how to play soccer. Just so your aware of that. This is my guide to HTML. I made it very simple (I hope) and I hope you can learn something from it. Now for those of you who are looking at the scrollbar and thinking, "How long is this guide????", don't worry. I put in a lot of examples and pictures. Its really a lot shorter than it seems. Trust me. Or don't, if you don't I suggest leaving or else....*evil music plays* And for those of you who are thinking, "Why did she spell "sky" wrong in the name???", well you people just need to stop being so critical. I did it on purpose, no need to panic. Skye is my name, so I spelled it wrong so it had a part of me in it. Happy? Good. Sheesh, people are so....so....annoying. You can't even spell something differently without them bothering you. So have fun with my guide!!!!! The BasicsBefore we get into the more difficult stuff, we need to learn the basic things. Some things about HTML.
That is just general information. Now for something more important. This is really important. PAY ATTENTION!!!!
That is the basics of HTML. Isn't it simple?
HTML elements and attributes, the head and body elementsElementsNow some terms. And element is the opening and closing tags, along with everything in between. Here is an example of an element: The paragraph tags, when put at the start and end of a group of words, form a paragraph, meaning there is a blank line before and after said group of words. The above code would form this: This is a paragraph Nested elementsThere are also nested elements. Nested elements are elements that are included inside of each other. Take the paragraph element: The paragraph tags when put before and after a group of words or sentences, create a paragraph. (surprising, right?) This mean a blank line before and after the group of words. The above code would give you this: This is a paragraph Then take the body element. Now nest the paragraph element in the body element. That was all there was to it. The paragraph and the body element are nested. You have the paragraph element, which is by itself a complete element, but you also have the body element. And now the paragraph element is part of the body element by being in between the opening and closing tags. Empty elementsIn addition to nested elements there are empty elements. This is when an element is started and ended all in the opening tag, such as the line break tag. Which is as such: That is all there is to the line break tag. You may have noticed by now that the closing tag is almost always like the opening tag, except for the forward slash at the beginning following the first angle bracket. Well, if you don't have a closing tag, like in an empty element, you close it by putting a space after the "br" then adding the forward slash, finished by the last angle bracket. Some other elements that are empty are: the tag for adding a horizontal line, the tag for inserting an image, and the tag with the meta information. AttributesNow for attributes. Lets say you have the paragraph element. But you don't want it to be left aligned (left aligned is the default). You could change how its aligned by adding an attribute to the opening paragraph tag. The closing tag stays the same though. Attribute are not mentioned in the closing tags, just the opening ones. You see what I did? Let me explain. Attributes most often are followed by a value(the value in this case being "example"). Values are most often in quotation marks and come after the equals sign following the attribute name. The class attribute is not something you really need to know. It basically puts it in a class with other elements like it, but it pretty much doesn't do much unless you learn CSS. I only used it in this example because it nicely showed the relationship between name and value. Body elementThe body element is shown with text like this: The body element contains all of the visible content in your document, you would put the opening body tag at the beginning, after the head element, then you would put all of your type, including tables and paragraphs and text and images. Then you would finish with the closing body tag. Simple as that. Head elementThe head element is the opposite of the body element. The content in the head element is not visible to the browser. Contained in the head element is the information about a document, also called the meta information. So tags that define visible things, like the paragraph element and the image tag are not allowed in the head. The head tags are as follows Everything you put in that section would go between those two tags. But only a few tags are actually allowed in the head element. I'm not going into detail, as the only one I use frequently is the title element.
The title element is shown in the head like this: The title is what shows in the blue bar at the top of your screen. So when you go into this page, it will say My HTML Guide followed by whatever browser you are using, in my case Mozilla Firefox. But if you really want to know head here and it will tell you all about the head element: www.w3schools.com/html/html_head.asp
Headings and linesHeadingsIts the start of your document, and you want to declare what its about in big large letters. But you don't want to do all of the codes to make a normal paragraph like that (don't worry, I'll teach you that later). So what do you use? A heading, of course. Headings are made using these different tags: And so on. The difference between heading one and heading three is size. Heading one is the larges, while heading six is the smallest. Let me show you: Heading OneHeading TwoHeading ThreeHeading FourHeading FiveHeading SixNow really the only attributes I use with the heading tags are style, id, and class. Now, don't be worried, I will explain those later. Don't get me wrong, there are others, but I don't use them a whole lot. Now you can head you page however you please. Although I don't recommend using headings as anything other than headings. That would take away from the heading you actually used as heading, which you probably want to use to catch peoples attention. Other than that there isn't a whole lot more I can say about headings, except that if you have a heading, you do not need to add a line break afterwords. Part of the heading code means that anything else after the heading starts on the next line. But that's about it for headings Horizontal linesHorizontal lines are nice to divide up the text in a document, I use a lot of them in this guide. The tag is simple this: You may have noticed that the horizontal line is indeed an empty element. Kudos to you for noticing.(If you didn't notice, pretend you did, it will make you look smarter) The code above will give you this: Amazing, isn't it? Ok, attribute you can use with the horizontal line tag. Most often, I use size, color and width. Color will be explained in a moment, so just hang on. But width I will explain here. Notice how I added the width attribute? And I still finished off with the forward slash followed by the angle bracket. Now the 50% means that it will only go across 50% of your screen, like this: But you don't have to do 50%, obviously. You could do 60% or 40% or 2%. But you don't have to use percents either. You could use pixels. If you wanted to use pixels, you would code it this way: Which would give you a line 300 pixels in length, like this: Which is pretty much all I can say to the width of lines. So now we go over size. Size is pretty much how thick the line is. This is how you do it: Now, you don't have to use 4 as the size. You can you use all different numbers, here are some on the different sizes. Size oneSize two Size three Size four Size five Size ten And on up. Now you know the ins and outs of making all kind of horizontal lines.
Changing the fontAnd now, the moment you have been waiting for. Not really, but font changes are pretty easy, and they end up looking really cool. If you change it in the right way... Basics of fontsThis is the simpler things: This creates bold text This creates italic text This is big text This is small text This is strong text This word is subscripted This word is superscripted Aligning your textNow there a couple different ways to align your text. Although, I only like one, so I'm only going to teach you one. Here it is: This is the newer way to align. It works in both HTML and the other coding languages. We have the paragraph code(and I'm not going to keep writing it down from now on, you'll just have to remember what I mean). And we use the style attribute to align. Like this: Which would still give you this: A right aligned paragraph. Changing colorThis is what I consider the fun part. There is so much you can do with colors. You can make your document the most colorful document in the history of documents. Which is just a lot of fun. Once again there are two different ways to color. But I'm only going to teach you one of them, so just live with it. If you take the paragraph code and add they style attribute as such: You should get this: Aqua colored paragraph **Note**Yes, you are using the same attribute to align as you are to color. Don't worry, its supposed to be that way. **Note**I used the color name aqua, but you should use the hex number for the color, because there are only 16 valid color names you can use; those colors being aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. All other colors need a code. There is distinct difference if you say background-color or color. Color is the color your text turns out to be, and background-color is the color behind your text. In the following coding we will give our text a aqua background. Which would give you: Aqua backgrounds Most computers now use a red, green, blue (RGB) system to make colors, and can supports millions of colors. But way back when computers supported 256 colors, and 40 of them were for just the computers. So they made a list of 216 web safe colors. I could have told you how to make colors using the RGB values, but I think its easier just to use the list of 216 web safe colors. To make it easier for you, I made a beautiful table full of the colors and their corresponding values.
In the above example you just did style="color:aqua as the attribute, but if you want to use any of the colors in the table you have to use style="color:#FF6699. Notice how I added the "# sign before the color value. Aligning and coloringI just mentioned (before the table) that you use the same attribue for both aligning and coloring. So how would you do both at the same time? You can't add the same attribute twice, that just doesn't work. So what you do is put both the values with the same style attribute, just put a semi-colin imbetween. like so style="align:right;color:greenWhich would give you text that was aligned right and green. Simple as that. Changing size and facesI bet you were just wondering how much more I could tell you about changing fonts. But don't worry these are the last ones I have. Changing the size and face of a font is done pretty much at the same time. Or at least it is the way I do it. There may be other ways to do it, but we're only going to learn this one. I'm sorry if you don't have the jolt font on your computer, and if you don't I'm not really sure what will come up. But if you do, you will get this: Big and jolt paragraph Just for the fun of it now, I'm going to put all of that stuff together and show you how to make a really cool text for your page. Really cool text!!
Links and Images
Links. They are what change the page. Here is all I'm going to tell you on links.
Links to a different pageOk here we go. For this lesson on links I'm going to use the Neopets homepages as the page we will be linking to. (which is most obviously www.neopets.com) So pay attention, I will explain in a minute. Now for the explenation.
Links to a different part of the pageYou can create links to a different section of the page. Although I'm sure you already knew that. Now linking to a different spot in the document uses pretty much the same code as linking to a different page. Except you have to create a way for the computer to know where you are linking to. You do this by giving a certain element and id. The id attribute is simple putting id="whatever_this_elements_name_is" in any tag anywhere in the body of your document, like say I wanted to create a link to the top of my page, and the header at the top of my page was this: You could add the id attribute like this: Now you can use the id to create a link to that point in your document; you would still use href="where you link to" to link to that place, but instead of adding the URL to a web page, you would add the # sign then the name of the id, like so: Now you can add titles to links within a page. But I wouldn't usually say to use the target attribute. You could, but mostly the point of links to a different spot in a page is to get you to that spot, not to open a new -blocked- ImagesAdding Images is basically the same idea, although you use a different code. We is use an fire faerie image as our example. So this would be the code to add an image: Which would give you this picture Its a nice picture isn't it? Anyway you can also change the dimentions of an image with the width and height attributes Change the width:Notice how just changing the width changes the height as well, so they are still in the original proportions. You probably want to try to stay in the same proportions as the original or it will end up looking like this. Aligning images is as simple as adding align="left", align="right, or align="center" to an image. Easy peasy. Making an image a linkI know what your thinking, "You can make an image a link?". What? You're not thinking that? Well, ok then. I just won't tell you how to do it. Just kidding! This is easy. If you want to make the earth faerie image a link to the neopets homepage, just put the insert an image tag inside of the opening and closing tags of the link element. I know that sounds confusing, but it really isn't. Watch this: Which gets you this A wonderful picture that is a link. It doesn't get much better than that. But it does. You can add a border on your picture. like this: To add a border, you have to add 2 attributes to your image tag. The first is border=however_thich_you_want_your_border. The second is style"border-color:#whatever_color_code_you_want_to_add And that's all there is to images.
List are useful tools for organizing your thoughts. There are two main types of list you can do: unordered lists and ordered lists. There are also definition lists, but I'm not going to teach you that. Unordered listsUnordered list are bulleted lists like this
Now the basic tags for an unordered list is: But that is just the opening and closing tags of the overall list. Adding a list item is like this Li stands for list item. So when you start a bullet point you begin with li in angle brackets, then you close with /li in angle brackets. Then you can start you next point with li again. You can have as many bullet points as you want as long as you open and close each one properly. If you mess it up, you can get some odd things. Ordered listsOrdered lists are almost the same as unordered list, except that instead of bullet points it uses numbers.
And it uses pretty much the same code, except that it uses ol instead of ul, like this: Lists with in listsYou can put lists in lists, its easier to show in coding than it is to explaing. As seen above, the list inside the list, is part of the second list item. So after you ended the list inside the list, you had to finish the list item before moving on to a new one. And just so you can see, the above codes would give you this:
Personally, tables are my favorite part of HTML. They are just so much fun, and there is so much you can do with them.
Above is a basic table, and what it would turn out to be in coding. Now, the awaited explanation of what I did.
Some common attribues to tables, are cellspacing and cellpadding. Cell spacing is how far apart the different cells are (and would be put in a table as cellspacing="2"). Cell padding is how far the text is away from the borders of the cell (and would be put in a table as cellpadding="3"). Thats really all I can tell you about tables. You mostly have to just play with it yourself, to figure out how different things work. Good luck with that!
The almighty textarea. It is one of the most useful commands if you are writting a guide to HTML. This is because when you put a code in a textarea, it ignores it!!! Which is so useful. Cause what use would it be if I tried to teach you the commands if I didn't actually show you the commands. But textarea's are really simple like this: The scrollbar colors that are set as a defaut on your computer are boring. Admit it. It's true. But you can change the color of it. Which adds so much to a site. These are the colors I have set as the scrollbars on this page.
This is a little weird, because I'm doing a HTML page, but this is actually CSS. So I'm not actually going to explain why I put what I did. If you really want to know, you'll have to learn CSS. You just need to know that you would put all of the stuff in the textarea between the closing tag of the head and the opening tag of the body at the beginning of a page. If you are just so curious you can't wait to learn why you did this stuff, try these different pages: Css guide, and Riddle's CSS tutorial.
That's pretty much all I'm going to teach you. I hope you got enough of this that you can experiment on your own with what I've taught you. And remember, some attributes can fit in just about any tag, such as the style attribute. You could put it in the rows of tables, or the cells of tables, or around the images as borders. There is no limit to what you can do with what I hopefully managed to teach you here. You know, if there was anything that wasn't on this page, that you think should have been or if you have any questions. Please don't hesitate to neomail me. I would love to help and would appreciate any critisism you have. And I'd be more than happy to help you with any layouts you are making. I love be of assistance, and I love HTML. So its like hitting two birds with one stone. On the point of copying my layout, don't. I put a supreme amount of work into writing this page, and I don't want anyone to steal it. Got it? Good. You must be thinking that I just had the conclusion and I am continuing to talk. Well, you'll just have to bear with me. So in my search to do this page, I found a bunch of websites, both on and off neopets, which I am going to call the best website to help people with other HTML things. I really liked this site, cause it have some really cool backgrounds. And a lot of random other cool glitters. You should visit here for all of your glittery needs This page isn't the best at describing why you are doing the things they tell you to do, but it has a lot of codes, and if you know a little of HTML you can figure the codes out and apply them in other places. Mostly I like the variety of different things they have to teach you I gave you a list of 216 colors, but if you are just a color fanatic and you need more than that, head to this website. There is like a zillion different colors and their codes. You have to admire their dedication to all colors that can go on the web. Absolutely amazing. I didn't even know what a screenie was (totally not kidding) before I read this website, now I could probably make some pretty good ones. So probably a good place to go for screenie help This is the best directory I ever found. It has links to literally ANY kind of site you could possibly want.
|
Updates |
NEOPETS, characters, logos, names and all related indicia
are trademarks of Neopets, Inc., © 1999-2012.
® denotes Reg. US Pat. & TM Office.
All rights reserved.
PRIVACY POLICY | Safety Tips | Contact Us | About Us | Press Kit
Use of this site signifies your acceptance of the Terms and Conditions