TUTORIALS » HTML / JavaScript » HTML essentials (guided tutorials)Starting with HTML programming
By now, you should know what clients and servers are, and you should also know that you need to use HTML as your basic language to program a website. So, what program are you going to use to write all that code?
HTML documents are plain text filesHTML documents are plain text files, so you don't need to use any fancy editor—in fact, I would recommend never using those do-it-all web page editors since they really limit your creativity—real coders learn how to read the code and visualize it inside their minds.So what you really want to use is a simple text editor. Any version of Windows comes with Notepad and Mac OS X comes with... well, nothing that really works, so I recommend downloading Smultron (funny name, nice text editor).
Note: For windows users. Although notepad will do the work, I really recommend downloading SEG, a lightweight text editor capable of opening several files at the same time (something you'll find yourself doing very often) and has a very useful code highlighter feature, which allows you to identify important parts of your code in real-time.
Well, without any further ado, let's start our practice.
Wanna add some format to your text?HTML is all about tags. Tags are predefined keywords surrounded by angle brackets that define how a text or part of a page will look like. Tags usually come in pairs, like:<tag> SOME TEXT </tag> See? Our text is contained between an opening tag and a closing tag. A closing tag always starts with a bar (/).
<b>tag does? (yes, it makes the text to bold). Now, let's try with the <i>tag.
<i>tag makes the text to display in italic font. You can also combine tags.
Note: Always remember to close all the tags you have opened.
Also, you should close your tags in the reverse order as you opened them (take a look at the examples above). This is called "nesting".
I'll see you in the next turorial!
|
|