Header Ads

Removing or Discontinuing Text Styles in Nvu html editor

Removing or Discontinuing Text Styles

To remove all text styles (bold, italic, and so on) from selected text:

  1. Select the text.
  2. Open the Format menu and choose Remove All Text Styles.
  3. Continue typing.

To continue typing text with all text styles removed:

  1. Place the insertion point where you want to discontinue the text styles.
  2. Open the Format menu and choose Discontinue Text Styles.
  3. Continue typing.

Inserting Horizontal Lines

Horizontal lines are typically used to separate different sections of a document visually. To insert a horizontal line (also called a rule) in your page, begin from the Nvu window:

  1. Click to place the insertion point where you want the line to appear.
  2. Open the Insert menu and choose Horizontal Line.

Setting Horizontal Line Properties

You can customize a line's height, length, width, alignment, and shading.

  1. Double-click the line to display the Horizontal Line Properties dialog box.
  2. Edit any of these properties:
    • Width: Enter the width and then choose "% of window" or "pixels." If you specify width as a percentage, the line's width changes whenever the Nvu window's or browser window's width changes.
    • Height: Type a number for the line's height (in pixels).
    • 3-D Shading: Select this to add depth to the line by adding a bevel shading.
    • Alignment: Specify where you want to place the line (left, center, or right).
  3. Click Use as Default to use these settings as the default the next time you insert a horizontal line.
  4. To edit the properties of a horizontal line manually, click Advanced Edit.

Inserting Special Characters

To insert special characters such as accent marks, copyrights, or currency symbols:

  1. Click to place the insertion point where you want the special character to appear.
  2. Open the Insert menu and choose Characters and Symbols. You see the Insert Character dialog box.
  3. Select a category of characters.
    • If you choose Accent Uppercase or Accent Lowercase, then open the Letter drop-down list and select the letter you wish to apply an accent to. (Note: not all letters have accented forms.) Select Common Symbols to insert special characters such as copyright symbols or fractions.
  4. From the Character drop-down list, select the character you want to insert.
  5. Click Insert.

    You can continue typing in your document (or in a mail compose window) while you keep this dialog box open, in case you want to use it again.

  6. Click Close when you are done inserting special characters.

Inserting HTML Elements and Attributes

If you understand how to work with HTML source code, you can insert additional tags, style attributes, and JavaScript into your page. If you are not sure how to work with HTML source code, it's best not to change it. To work with HTML code, use one of these methods:

  • Place the insertion point where you want to insert the HTML code, or select the text you want to edit, and then open the Insert menu and choose HTML. In the Insert HTML dialog box, enter HTML tags and text, and then click Insert.
  • Select an element such as a table, named anchor, image, link, or horizontal line. Double-click the element to open the associated properties dialog box for that item. Click Advanced Edit to open the Advanced Property Editor. You can use the Advanced Property Editor to add HTML attributes, JavaScript, and CSS to objects.
  • Open the View menu, and choose HTML Source, or click the Source tab in the Edit Mode toolbar at the bottom of the Nvu window. (If you don't see the Edit Mode toolbar, open the View menu and choose Show/Hide; then make sure the Edit Mode Toolbar is checked.)

Validating the HTML

Before you put your document on a web server(i.e. publish it), it is good practice to first check the document's HTML formatting so as to make sure that it conforms to web standards. Documents containing validated HTML are less likely to cause problems when viewed by different browsers. Just visually checking your web pages in your favourite web browser doesn't ensure that your document will appear correctly when viewed in other web browsers.

Nvu provides a convenient way for you to check that your document conforms to W3C (World Wide Web Consortium) HTML standards. Nvu uses the W3C HTML Validation Service, which checks your document's HTML syntax for compliance with HTML 4.01 standards. This service also provides information on how to correct errors.

Note: You must be connected to the Internet to use this feature.

To validate your document's HTML syntax:

  1. Open the Tools menu, and choose Validate HTML. If you have unsaved changes, Nvu asks you to save them before proceeding.
  2. Nvu will open another window with results for your page displayed in it after the W3C Validation Service program parses your html file.
Powered by Blogger.