HTML (Hypertext Markup Language) is much simpler than other programming languages like Java, Perl, C, or BASIC, and is used to describe how a set of text and images should be displayed on a webpage to the viewer. This article will guide you through the steps of getting started with basic HTML coding and editing.
You will need
- Computer with internet connection and web browser
- Notepad (for windows platforms) or TextEdit (for Mac platforms) installed.
Instructions
Using notepad or textEdit
- Launch Notepad or Textedit.
- Both programs will start a blank document; create a new document or open an existing file.
- Once you’ve started a file, start editing your text. Notepad and TextEdit have all the basic editing functions of a word processor.
- Save your HTML files using .htm or .html as the file extension.
Using markup tags
- HTML markup tags consist of a left angle bracket, the name of the tag, and the right angle bracket.
- To start a boldface markup tag, type , type the words you want in boldface lettering, and then create an ending tag for the boldface type. An ending tag looks just like the starting tag, except it is preceded by a forward slash character (/). Your bold sentence should look something like this: This text is bold.
- Almost every markup tag in HTML requires both a starting tag and an ending tag. However, there are two notable exceptions to the rule. The first is the paragraph marker,
- Which does not require and ending tag. Second is the break marker
- Which is placed at the end of a sentence to creates space between it and the next.
Writing a simple HTML document
- The first markup tag in every HTML document is the tag. This allows web browsers to know that everything in the file is HTML text. Open a blank document and type on one line, and then on the next. Everything else typed within the document should fall between those tags.
- For the head sections, type on the line after , followed by on the next line to create a section.
- To start the title tag, type between the <HEAD> tags and close it with on the following line. Between the title tags, enter a title for your document.
- To create the next section, the body, type on the line after , followed by . Most of your text and HTML codes will fall between the tags.
- When you’ve completed the above, your document is properly formatted, but it doesn’t have any content. To change that, on a new line between the body tags, begin typing some text.
- Save the HTML file.
- Using a Web browser, open your new HTML document. Because the file is on your local desktop machine and not on the Web, you’ll need to use the Open File option in your Web browser.
Do
- Remember that markup tags are NOT case sensitive. For example bold tag can be typed as: or .
- Do Web research or find reference books for an extensive list of markup tags available in HTML.