HTML editors flourish on the web. With the right search you can find pages of listings: freeware, shareware, code editors that support HTML and simple editors with preview capabilities. If you want to learn HTML, however, the best way to start is with a simple text editor. TextEdit, which ships free with the Macintosh OS, will do just fine.
- Difficulty:
- Easy
Instructions
-
-
1
Open your document in TextEdit. Choose a monospaced typeface such as Courier. This will make your code easier to read.
-
2
Type your head and body tags to start the document ("
", "" and "", ""). These tags are essential to make your page readable in the browser. You don't need to add anything between the "," tags (these are reserved for page features such as the page title and meta data).
-
3
Add your content (page titles, paragraphs, etc) between the "
" tags. Use carriage returns between paragraphs to see where you want to add formatting code. This will allow you to concentrate on your content and code in separate stages.
-
4
Insert the formatting code. Place the cursor at the beginning of each paragraph. Type the code to format that block of text (e.g., "
", "
"). Place the cursor at the end of each paragraph and type the code to end the formatting (e.g., "
", "").
-
5
Use carriage returns and spaces to layout your HTML code. Don't use tabs. Two spaces will be fine for each tab if you're using a monospaced font. Browsers don't read carriage returns or spaces between HTML headings which make them ideal for breaking up complicated code like table cells and rows.
-
6
Save the file in HTML format. Choose "Save As" from the File menu and change the extension to .htm, not .txt.
-
7
Drag the HTML file onto your browser icon to preview the document. If your formatting doesn't look right, make the proper changes in your HTML file.
Read Next:
-
How to View a Lisp Code That Is Write-Protected
Lisp is one of the oldest programming languages still in popular use as of February 2011. Lisp, legendary for its use as...
-
How to Edit HTML Code
Hypertext Markup Language (HTML) is the primary coding language used for Internet websites and web pages. HTML coding has various tags and...
-
How to Open .Jsp
The .JSP file extension indicates the file is a "JavaServer Page" (JSP). JSP files are text documents containing source code for dynamically...
-
How to Write an HTML Webpage Using Notepad
Several HTML editors exist to assist in creating Web pages. However, you can use a plain text editor to create an HTML...
-
How to Edit HTML in TextEdit
TextEdit is the default text editing application packaged with Apple computers to run on Mac OS X operating systems. It is a...
-
How to Write a Simple Email in HTML Code
In addition to creating Web pages, HyperText Markup Language (HTML) code is also used in email messages to give you a broader...
-
Editing HTML Text
Editing HTML Text. Part of the series: Introduction to HTML Computer Code. Learn how to edit text in an HTML document and...
-
How to Write a Sonnet
The sonnet, a 14-line poem, has two main types: English (or Shakespearean) and Italian (or Petrarchan). The poem's the thing-- follow these...
-
How to Write HTML Code in Notepad
Notepad is a simple text editor that comes free with Windows and lets you code simple documents to be used on a...
-
How to Put HTML Code in a Scroll Bar
Changing some of the finer details of your Web page will help draw an audience and keep visitors entertained longer. One of...
-
How to Set Up a Blank Page for Letter Writing on a Mac Computer
Mac computers include TextEdit, a basic word processing program. You can use TextEdit to set up a blank page for letter writing....
-
How to Make a Blog in HTML
Creating a blog in HTML is a simple way to have a blog you can update in any text editor. Blogs have...
-
How to Put a Frameset Code on My Website
A frameset is an HTML element that exists to define a web page as a set of frames--a set of different HTML...
-
How to Use the Text Edit Tool in Adobe Acrobat
The Text Edit tool in Adobe Acrobat 8 Professional can be used to mark text in your PDF document for revision. This...
-
How to Use HTML Codes
HTML, or Hyper Text Markup Language, is the backbone of pages that are viewed in any web browser. The language is made...
-
How to Write a DVD With a Mac Mini Combo
Writing a DVD on a Mac Mini is the same as it would be on a regular iMac or Macbook. The hardware...
-
How to Write Text in JavaScript
JavaScript allows you to dynamically write text onto the page, using the document.write and document.writeln functions.
-
How to Write HTML to a Text File
Hyper text markup language, or HTML, is a system of text-based commands used for writing web pages. If you know the language,...