Intro: From a Noob for Noob's: a Guide to Beginning HTML
How fun would it be to be able to make your own website for a blog, a club, or maybe even a business? There are other reasons to make a website but how fun would it be? I'll leave that answer to you but consider the possibilities. Some people like to have others create they're personal or business website(s) but that can get incredibly expensive. So why not create one your self?
First off if you would like to build your own website from source code you will need a few things.
Notepad++ multi-language source code editor
Windows Notepad (NOT WORD PAD)
Problem solving skills
(by the way the photos can be used for a later step if you so choose).
Step 1: Basic Formatting
After either opening notepad or downloading then opening notepad++ start off a new document like this
*TAB* *TAB* <title>
(your webpage title goes here)
*TAB* *TAB* <h1> *or* <h2> *or* <h3> *or* <h4> *or* <h5> *or* <h6>
(your content here)
*TAB* *TAB* </h1-6>
*TAB* *TAB* <p>
your content here)
*TAB* *TAB* </p>
What does all this mean? Well I'll explain it to you but first a crash course about Tags. A Tag is what is inside the chevrons meaning the <> marks. A Tag carries out certain functions like the <title> Tag makes the browser say what the website is called and displays it up above the URL bar and on the tab of your web browser. Any Tag with a slash mark like the </html> tag is the closer for that Tag, and the LAST Tag entered is the FIRST Tag closed. So you close Tags in the opposite order of which you opened them.
<!DOCTYPE html> means that is the type of document we're looking at a HTML formatted document
<html> Tag is the official start of the website DO NOT SKIP THIS STEP
</html> this marks the end of the website because of the slash added to the Tag
<head> is where the heading is (mostly the title) of the webpage
</head> this is the closer Tag for <head>
<title> displays the chosen website title
</title> this is the closer Tag for <title>
<body> the meat of the webpage where all the content is
</body> this is the closer Tag for <body>
<h1-6> is a way to setup headings for content on the page larger the number the smaller the heading will be
</h1-6> this is the closer Tag for <h1-6>
<p> the start of a paragraph within the webpage
</p> this is the closer Tag for <p>
That is all the basic formatting to start off the website now to add some more stuff.
Step 2: Colors, and Background Colors
Lets start with the template you made last time then go inside this Tag:
Then make it look like this
(your content here)
You can then change the background color of the text like so:
<h1-6 style "background-color:brown">
(your content here)
Run the webpage through your web browser by doing the following:
Save the file as yourchoice.html
Double click on the file
This should bring it up with your web broswer
To edit later do this:
Right click on the file
Go to the Open With drop down menu
Then select notepad++ or just plain notepad from the dialog box
The color of the text changed should change when you open the program with your internet browser
Next up In-line Style Editing
Step 3: In-line Style Editing
If you wanted to change what text is used on your website you would use Style Editing, like so...
This changes the font of the text to Impact.
Note this is case sensitive for the name of the font you want to use; verdana is not the same as Verdana.
The px is required for this Style Editing to work.
This changes the text color to red.
However you still end the Tag the same as you would before Style Editing.
Next step Hyperlinks!
Step 4: Hyperlinks
To add a Hyperlink to your website add the following code between the <body> and </body> Tags:
your hyperlink description or name
Here is my example:
That's all you will need for a hyperlink. That wasn't too bad was it? Now onward to the last step of this guide! FOR NARNIA!!!!!!!!!!
Step 5: Images and YouTube Videos
Now lets add some pretty pictures to the page shall we?
Add this line (you can copy and paste it too because I won't know the difference) between the <body> and </body> Tags.
<img src="http://thenullset.files.wordpress.com/2008/12/soul_eater06_1920.jpg" alt="soul eater wallpaper" width=400 height=249>
This should give you a wallpaper from my favorite anime (second to Bleach) called Soul Eater.
Note:That you can use the image URL or the images directory /location it might look like this:
/root/Pictures/soul eater wallpaper.jpeg
(^^^Since I'm in Linux this is what I get^^^)
However this may look different if you use windows or mac.
And that's that on images almost done with the guide for essentials in HTML all that's left is adding YouTube videos
To add a YouTube Video add this code between the <body> and </body> Tags
<iframe width=640 height=360 src="//www.youtube.com/embed/video id here" frameboarder="0" allowfullscreen>
The video id is generally any thing after the www.youtube.com/watch?v= part of the URL.
Here is an example with a video I found
<iframe width="640" height="360" src="http://www.youtube.com/embed/rw-m6f44fK8 frameboarder="0" allowfullscreen>
Step 6: Outro
So that entire guide took me about 3 hours of typing and checking code so please enjoy it while i go eat a late lunch (right now it's about 1:30pm where I live. Shout out to Michigan!!!). But please do enjoy, and if there is anything you need help with leave a comment and I will see what I can do for you.
On this step are some screenshots of what I've been working as its been developed. 10-2-13 a new screenshot was taken of my iPod and was posted here. Plus the wallpaper from earlier if anyone wants it.