Toxikr3 Posted February 25, 2010 Author Share Posted February 25, 2010 Hi guys, I thought I'd write up a simple HTML tutorial just cause I was bored ^_^It is not that long since there aren't any huge paragraphs to read, just some simple explanations.If you find anything wrong please post ^_^**Index** - Press CTRl + F - Type in the code to get to a topicName #- 1.0- 1.1- 1.2Quick Review - 1.3 - 1.4Headers & paragraphs - 1.5Emphasis - 1.6Simple web page - 1.7Image - 1.8–----------------------------------------------------------------------------------------------------[1.0]Ok, HTML stands for Hyper Text Markup Language. It is not a programming language but a markup language. It uses tags to create a webpage.To keep it simple, you start a web page by using these tags: These tags tell the browser that this is an HTML document.Everything after this will be nested inside these tags. Think of it as a container for all the good stuff ^_^Almost all tags in HTML have a starting tag <> and a closing tag >There are exceptions, and I will talk about them later on.[1.1]The next tags I will talk about are the HEAD tags: [1.2]If you are creating a simple website, most of the time you'd be only using these tags to put your TITLE in.The TITLE tag:Defines the title of a web page. Any thing between these tags will show up at the very top of the webpage. Eg. You have this site open, if you look at the very top you will see MMORPG Maker. That is the Title of this document.When you get a bit more complicated, you might use the HEAD tag to put your CSS inside or your JavaScript inside, I won't be discussing them in this tutorial however.[1.3]To make sure you aren't lost, I'll review what I talked about.You start a document byInside these are the HEAD tags,Inside the HEAD tags are the TITLE tagsIt doesn't matter how you lineup your tags, the web browser will read it all the same. It is good to indent when nesting, its easier to read and understand. The same code above can be written like thisAnd the browser would show you the same thing. But now it looks bad, and harder to understand for us, so we nest them.[1.4]The next tag is the important tag.This tag holds pretty much all your text, images, paragraphs and what not.This tag comes after the HEAD tag.So, that is how everything looks in its most basic layout. I like to writeon one line because titles are usually that long. You can write however you like.Ok, so we have learned the basic, no let's get some text on the screen?These next tags go inside the BODY tag. Most of your tags will be inside the BODY tag.[1.5]Lets start from the top. When you write a report for school/work you first, write the heading, then you write your paragraphs, then you bold italics and underline your text, then you add some images to make it look pretty.So, that is the order I will tell you about the tags.To write a header on a web page, you use:Now, there are variations of these tags. The H1 tag will write the biggest possible header, relatively speaking.These are the tags for writing headers:In this, H1 is the biggest font size, and H6 is the smallest font size. Simple isn't it?Now, heading is done, we will write our main textThis tag is used to write paragraphs on a web page, thus the letter “pâ€ÂNot a lot to talk about this tag. Its simple, any text inside this would be written in a paragraph like structure.[1.6]Now, to emphasis your points in your paragraph you'd use bold,italics, and underline. To that using tags is quite simple.BoldItalicsUnderline```[u] [/u]```Very simple. But to avoid bad habits in the future, try nesting them also.Eg.```**I am bold and [u]underlined[/u]**```This will print**I am bold and underlined**However this could also work```**I am bold and [u]underlined**[/u]```See the difference? First one is the good way to write it.[1.7]Ok here are all the tags together to create a small web page. This is very simple.``` My first webpage# Welcome### Hope you enjoy your stay This is my webpage, I don't really know what to **talk** about so I will [u]_simply_[/u] write random stuff```[1.8]Ok now that you have a header, paragraph and some emphasis, let's let to add images.The tag to add images is:```![](â€Ââ€Â)```See how there is no ending tag for this?Inside the Ҡgoes your location of the image and name. If your image is in the same directory as your page, you simply write the name of the image with the extension. EgYour page is in c:\MyFolderAnd your image is also in the same place, the image is a “.gifâ€Â, and is called “pictureâ€ÂSo you write```![](â€Âpicture.gifâ€Â)```If the image was in C:\ you'd write```![](â€Â\picture.gifâ€Â)```An important attribute of the “img†tag is “altâ€Â“alt†is the alternate text, if for some reason the image does not load, the text will be used in it's place.To use it:Simple enough ^_^Try using the "img" tag with the basic layout.Other attributes for the "img" tag:```align - top bottom middle left righteg.[img][/img]width/height - Can be in pixels or percentageeg.[img][/img]or[img][/img]NOTE: They are not the same.``` Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now