How to Write HTML Code
Want to know more about how to write HTML code? This small HTML guide will help you out!
This article has been tagged as a stub. That means it's off to a good start, but still has room to grow into a more helpful resource. Until the article reaches its full potential, it will be hidden from search results. Can you help it flourish? If you think the article offers complete and accurate instructions, feel free to remove this tag. |
Steps
-
1Open the editor window. I prefer "Notepad" for this exercise, as the simpler it is - the better.
-
2Write 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.
-
3Change 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.
-
4Alter 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
-
5Let'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.
-
6Continue 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!
About this wikiHow