HTML: Difference between revisions
m (→Using HTML) |
|||
Line 9: | Line 9: | ||
==How HTML is structured== | ==How HTML is structured== | ||
HTML consists of a number of elements, which are | HTML consists of a number of elements, which are demarked by two tags: an opening and a closing tag. The opening tag indicates where an element starts, and the closing tag indicates where an element finishes. Each tag consists of a word or a few characters, enclosed by less-than and greater-than characters (<code>< and ></code>). A closing tag has an additional slash in it to indicate its a closing tag. For example, a full element is constructed as follows: <code><element>hello!</element></code>. | ||
Elements can also have attributes. Attributes configure or fine-tune the behavior of the elements. <code><a href='www.example.com'>Link to another site</a></code> | |||
There are also tags which are used by themselves, and do not require a closing tag. These are elements like <br>, which insert a linebreak in the layout at the location of the element. | |||
==Using HTML== | ==Using HTML== |
Revision as of 12:55, 29 July 2016
HTML
HTML stands for HyperText Markup Language. It is a language used to indicate how text or content should be laid out for display. Along with Cascading Style Sheets (CSS), it is generally used for styling webpages.
How HTML relates to the Tygron Engine
In the Tygron Engine, there are a number of places where the user is responsible for providing text and information. When that information can be complex, such as the Excel output for an Excel Indicator, the Engine allows HTML to be used for determining how the information should be laid out. The Engine is effectively HTML5 compliant for these purposes.
How HTML is structured
HTML consists of a number of elements, which are demarked by two tags: an opening and a closing tag. The opening tag indicates where an element starts, and the closing tag indicates where an element finishes. Each tag consists of a word or a few characters, enclosed by less-than and greater-than characters (< and >
). A closing tag has an additional slash in it to indicate its a closing tag. For example, a full element is constructed as follows: <element>hello!</element>
.
Elements can also have attributes. Attributes configure or fine-tune the behavior of the elements. <a href='www.example.com'>Link to another site</a>
There are also tags which are used by themselves, and do not require a closing tag. These are elements like <br>, which insert a linebreak in the layout at the location of the element.
Using HTML
The full span of the capabilities of HTML extends far beyond the scope of this wiki. Instead, some basic elements will be explained here which will allow you to tackle most formatting challenges. For further information regarding HTML, CSS and javascript, please refer to other online information sources.
Text formatting
For basic text styling, a number of elements exist.