Edit Article

Want to know more about how to write HTML code? This small HTML guide will help you out!

Steps

  1. 1
    Open the editor window. I prefer "Notepad" for this exercise, as the simpler it is - the better.
  2. 2
    Write the following string into the editor: "This is a test". Save the file under .html extension and open it with your browser. You will see that the last word,"test", will open in bold.
  3. 3
    Change the line so that it reads "This is a test". Save and open in the browser - you'll see that the word "is" is now written in italic font.
  4. 4
    Alter the line again so that it goes "<a href="http://www.google.com">This</a> is a test". When you check the result in the Web browser, the word "This" now points to Google.com
  5. 5
    Let's try to combine the tags now. Change the line to "<a href="http://www.google.com">This</a> is a test". Now, the word "This" is written in bold italic font and points to Google.com at the same time.
  6. 6
    Continue experimenting with tags. Remember, the "<" means you're applying the tag, and the "</..." means you're closing it.


Tips

  • Don't forget to close the tags, otherwise your text will become one big mess!

Article Info

Categories: Stub | HTML

Thanks to all authors for creating a page that has been read 1,079 times.

Did this article help you?
Yes No