Templates for HTML
- 2 minutes to read
This topic lists main HTML templates.
To access all CodeRush templates for HTML, open the Templates Options page, choose HTML, and expand the Raw HTML folder.
Important
Visual Studio IntelliSense has priority over CodeRush templates. For information on how to prioritize a CodeRush template over Visual Studio IntelliSense, refer to the following topic section: Expand a Template Instead of Visual Studio IntelliSense.
Tables
Template | Description |
---|---|
c, d, .tc, .td | Creates a table cell. |
r, .tr, | Creates a table row. |
.tf | Creates a table footer. |
.th | Creates a table header. |
.thf | Creates a table with header and footer. |
You can also use the .t?TableRows?x?TableColumns? template to create an HTML table.
In this template:
- The ?TableRows? parameter is the number of table rows.
- The ?TableColumns? parameter is the number of table columns.
For example, to create an HTML table with two rows and two columns, expand the .t2x2 template.
Structure
Template | Description |
---|---|
.b, .p, | Creates a break element. |
.d | Creates a div tag that is used to define a division or section in an HTML document. |
Links
Template | Description |
---|---|
.a, .hl, | Creates a hyperlink (the <a> tag). |
Lists
Template | Description |
---|---|
.li | Creates a <li> tag that is used to define a list item. |
.lb, .ddl | Creates a ListBox element (the <ul> tag). |
.ul | Creates an unordered list element (the <ul> tag). |
Inputs
Template | Description |
---|---|
.bn | Creates a Button element. |
.cb | Creates a CheckBox element. |
.tb | Creates a TextBox element. |
.o | Creates an Option element. |
.rb | Creates a RadioButton element. |