Back to Devexpress

Templates for HTML

coderushforroslyn-402064-coding-assistance-code-templates-templates-for-html.md

latest2.3 KB
Original Source

Templates for HTML

  • Jan 31, 2023
  • 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

TemplateDescription
c , d , .tc , .tdCreates a table cell.
r , .tr ,Creates a table row.
.tfCreates a table footer.
.thCreates a table header.
.thfCreates 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

TemplateDescription
.b , .p ,Creates a break element.
.dCreates a div tag that is used to define a division or section in an HTML document.
TemplateDescription
.a , .hl ,Creates a hyperlink (the <a> tag).

Lists

TemplateDescription
.liCreates a <li> tag that is used to define a list item.
.lb , .ddlCreates a ListBox element (the <ul> tag).
.ulCreates an unordered list element (the <ul> tag).

Inputs

TemplateDescription
.bnCreates a Button element.
.cbCreates a CheckBox element.
.tbCreates a TextBox element.
.oCreates an Option element.
.rbCreates a RadioButton element.