You can mess up, but the beautiful thing is: if the browser doesn’t know what you’re asking for, it ignores it. No crashing!
Recently, I’ve been working on web pages. That’s something I’ve never done before, at least not the correct way. I used to think I had to layout a website with tables. I had no idea xml format was so easy. I was missing out on the power and simplicity of the web. All those cool websites you see? Yes, you can do them to.
Before you jump the gun, I recommend looking into an IDE (integrated development environment) called Bluefish.
HTML (HyperText Markup Language)
Your browser is running HTML code right now. Actually, all it’s really doing is reading a text file that says “<!DOCTYPE html>” at the top (or something like that).
All commands in HTML are formatted as XML style “tags”, which simply means that if you have a command, say “command”, using it looks like this:
That’s it. Aside from the <!DOCTYPE html> and some comments, the rest of your document will be enclosed in html tags, which means:
<html> all your stuff </html>
Tutorial at W3Schools, although I probably would recommend this only for people with past coding experience. For reference, read up on it at the HTML Code Tutorial website.
Once again, to make it easy for yourself, use the Bluefish IDE for syntax highlighting and code completion.
CSS (Cascading Style Sheets)
Up until HTML 4, CSS did not exist and there was no real way of formatting your website. But with CSS, you can set up those borders and such on your website easily. Basically, you set up fields that hold commands for how to treat the stuff in them.
The key commands you need to know about: “position”, “left”, “right”, “top”, “bottom”, “width”, “height”, and “background”.
Yes, use Bluefish IDE for syntax highlighting and code completion. It also has documentation in it to tell you what these commands do.
Key commands to look up: document.write() and document.getElementById()
Now that’s not so bad is it? Go ahead and give scripting a try. Eventually, you too can have your own website up and showing. There are plenty of free places to host as well. Try out 000webhost or webs.com.