HTML stands for HyperText Markup Language. It's the coding language many web pages are written in. And it's pretty easy to learn.
Using any simple text editor like Windows' Notepad, you can type basic HTML commands that will display your web pages when uploaded to your web space.
Here are a few basic commands to get your web page started:
- When writing in HTML, there is always a beginning and ending tag—that is, a beginning and ending action. (Two exceptions: line break tags and image tags.)
<html> indicates the beginning of an HTML page.
</html> indicates the end of an HTML page.
- Between those <html> tags you need a head and a body, and inside the body, you need a title. So here is your most basic template to follow:
<title>Place the title of your web page here</title>
Place the contents of your web page here.
- To make any text appear bold, surround it with <b> and </b> (bold) tags.
<b> indicates the beginning of bold text
</b> indicates the end of bold text
- To separate your text into paragraphs, surround it with <p> and </p> (paragraph) tags.
<p>This is a single paragraph.</p>
- To add extra spaces between lines of text, use a <br> (line break) tag, one <br> per space.
This is me<br>
123 Fake Street<br>
Anytown, ST 12345
- To add an image to your web page, use an <img src="image.gif" /> (image) tag, where "src" means source (the location of the image file), and image.gif is the name of the image you are adding to your site.
<img src="/photos/vacation1.jpg" alt="my favorite vacation pic" />
- To add links to your web page (that is, create links to other web sites), use a hyperlink tag where http://www.website.com is the site you want to link to.
<a href="http://www.website.com">text to display</a>
When you're finished creating the HTML for your web page, save your main page—your homepage—as index.html. Web browsers will automatically display the "index.html" page first when someone comes to your web site.
Any other pages on your site should have short names with no spaces and end in .html. Your page files may have names like index.html, vacation.html, resume.html, about.html, and so on.