1. HTML (Hypertext Markup Language)

    Article: AN0002379Updated: 13.12.2018

    HTML is a primary language for developing pages on the Internet. HTML code is displayed to users by the browser. You can create HTML by means of an editor, in which you write, format, insert links etc. and you do not need to care about HTML. However, you can still come across a situation when the editor will not create exactly what you had in mind and then you have to step in manually. Good HTML editor allows you to switch to the source code and perform necessary changes by manual adjustments.

    HTML has undergone an evolution. Today standard is HTML5, that supports many new technologies and lays higher demands on HTML code that you create. General rule that an error in HTML will not cause an issue at display (erroneous part of the code will just not be displayed) led to higher demands on computing resources at HTML parsing and to slower page display. The syntax was made stricter in the course of years in order that low quality codes were eliminated.

    HTML language consists of tags and their properties. HTML is a plain text which is a great advantage. Particular text parts are embedded in tags that determine their meaning - e.g. formatting.

    Example of HTML text:

    <b>Bold text</b>, <i>text in italics</i>. Text without tags.

    It will be displayed like this:

    Bold text, text in italics. Text without tags.

    Tags are enclosed with angle brackets < and >. Most of tags come in pairs like tag b (bold font) and tag i (italics font) like in above example.

    HTML document has a prescribed structure. It contains document type that tells the browser how it should be treated. The HTML document itself contains two parts.

    • Head that contains data about the whole document - e.g. in which coding the text is stored, what is document title, description, key words etc. These data are stated at the beginning of the document in element head.
    • The body of the document itself with the displayed content. It is situated in the element body.

    Look at this example:

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Page title</title>
    </head>
    <body>
    <h1>Page headline</h1>
    <p>This is <a href="https://www.objectgears.eu/">link</a> in a paragraph.</p>
    <!-- this is comment -->
    </body>
    </html>;

    You can use HTML in several places in ObjectGears:

    • You can switch to the source code in the HTML editor and perform detailed changes if needed. HTML editor can be used for editing column type Text that is displayed as HTML or in the webpart HTML text.
    • You can create your own HTML dynamically (on the fly) in the webpart Script and display it then in the page.

    We recommed Wikipedia and w3schools for more information about HTML.

×