Minecraft Blogs / Tutorial

Basic HTML Tutorial #1

  • 379 views, 1 today
  • 3
  • 0
  • 5
ALPUN's Avatar ALPUN
Level 21 : Expert Modder
5
Basic HTML Tutorial #1

Zach Ripka @zachrip_




NOTE: After some recent storms here in Minnesota, I'm now without power until Monday, June 24th, I'm using power from a generator, so I may not be able to upload blogs daily for a little while.

After the last tutorial, I've decided it be best that I cover HTML before I cover Javascript. So I'm going to be explaining some HTML today. The requirements are the same as last tutorial, download the following:


Open up whatever editor you downloaded above. Create a new file, name it "htmltut1.html" and save it. Komodo edit users should change the editor setting to "html5" in the bottom right hand of the editor:


alcipng


Alright, let's jump right in. We'll start with all the ways of displaying text, since I just want to keep this one short, we're going to condense our code into sections, and then save it.


Ways of outputting and formatting text:


alckpng


Alright, let's see what it looks like in the browser, save it and open it in Chrome.


alcmpng


Alright, now let's add images and links(use any image, make sure it's in the same directory as the HTML file):


aldfpng

Let's see it in browser:


aldgpng


Note, the href parameter for the <a> tag MUST have a protocol in front of it, otherwise it's a local link and will search for the file on your website.


Time for some inputs:


aldipng


Let's see our browser now:


aldkpng


Alright, one last tag, but I'm not going to screenshot it. It's the "div" tag, essentially it's a box to put a bunch of subitems in. Most websites have divs for at least three things: header/nav, content, and a footer. We'll be using them a lot in our tutorials.


I've now covered some of the basic HTML elements, you'll use most of these during development of a website, but not all. HTML is the structure to your website, the bones, scaffolding, or anything similar. Javascript can be like the organs, they make the website run (I know, this isn't COMPLETELY true). And CSS is the look of the website. These three languages (and some server side things) come together to make a good website.


To clarify, I didn't go very in depth with this tutorial because HTML itself isn't very complicated. Things get more complicated when we combine other languages. If you need more on HTML, there are plenty of tutorials on it already, and you can find full lists of HTML valid tags.


Be sure to check out my other blogs, I'll be posting nearly daily!

Don't forget to leave feedback below, and ask questions!
Tags

Create an account or sign in to comment.

rocky1921
06/22/2013 11:23 am
Level 19 : Journeyman Architect
rocky1921's Avatar
I cannot seem to get the picture to work.. :/
1
Matthewenderle
06/22/2013 11:47 am
Level 3 : Apprentice Artist
Matthewenderle's Avatar
you probably don't have the correct path to the image.
assume this file path

Folder
|- My Pictures
| |- creeper.png
|
|- My Website
| |- index.html

Asuming we are editing the index.html, you would need to do
<img src="../My Pictures/creeper.png"> every "../" means to go up a folder. But make a folder called images then just use <img src="images/creeper.png" > if it then looks like

Folder
|- My Pictures
| |- creeper.png
|
|- My Website
|- images (Folder)
|- creeper.png
| |- index.html
1
rocky1921
06/23/2013 12:24 am
Level 19 : Journeyman Architect
rocky1921's Avatar
Thanks but I figured it out on my own :p
1
ALPUN
06/22/2013 10:06 pm
Level 21 : Expert Modder
ALPUN's Avatar
Hey thanks for trying to help him out, your method would've worked if he tried it and he had the same structure.
1
rocky1921
06/22/2013 11:43 am
Level 19 : Journeyman Architect
rocky1921's Avatar
Never mind, I got it. I found out that it has to be in the same location where I saved this file.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome