Neatware  Header

    Core

    Core module includes Structure, Meta, Text, Hypertext, and List modules.

  1. Structure Module

    Structure Module includes html, head, title and body elements. _html specifies the xml namespace and language. html_ specifies the end of xhtml. For example,

    _html( "xmlns='http://www.w3.org/1999/xhtml' "
         + "xml:lang='en' lang='en'" );
    html_();
    
    _head method specifies the human readable and machine readable head information of an XHTML document. The _title method must appear inside the _head content. Other methods are optional. For example,
    _head();
      _title( "title='Document'" );
        quote( "Title" );
      title_();
    head_
    
    A browser will display the value of the title attribute such as title='Document' on the title bar. Typically, 'title' attribute is used as a tooltip of a method.

    _body method specifies the content of an XHTML document. It has the COMMON attribute set. Style sheets are now the preferred way to describe the presentation.

    _body();
      quote( "XHTML content" );
    body_();
    

  2. Meta Module

    __meta method sets machine readable information. Its 'name' attribute defines the property name; 'content' attribute defines the property value; 'scheme' attribute interprets the property value; 'lang' attribute specifies the language; and 'http-equiv' attribute provides HTTP server information for response header.

    __meta( "name='author' "
          + "content='David Robert' " 
          + "scheme='ISBN Author'" );
    __meta( "http-equiv='Expires' "
          + "content='Fri, 25 Dec 1998'" );
    

    http-equiv may be used to wait seconds and refresh to another page. Following example waiting 2 seconds and switch to new URL in content.

    __meta( "http-equiv='refresh' "
          + "content='2, http://www.neatware.com'" ); 
    

    When the name's value is a keyword, it is helpful to list a series of keywords in the content's value for search engine readable.

    __meta( "name='keywords' lang='en-us' "
          + "content="Snaml for Java'" );        
    
  3. Text Module

    Text Module consists of h1-h6 for heading, div, p, and pre for block, span, br, em, and strong for inline. Other deprciated methods are abbr, acronym, address, cite, code, dfn, kbd, samp, var, q, and blockquote. Developers should avoid to use the deprciated methods.

    Refer to Text Module for more details.

  4. Hypertext Module

    Hypertext Module includes the _a method.

    Refer to Link Module for more details.

  5. List Module

    List Module includes ul, ol, li, dl, dt, and dd elements.

    Refer to List Module for more details.