HTML <City> tag

HTML < cite > tag specifies a citation, a reference or title to a creative work, quoted content, books, websites, a research paper, a blog post, a painting, etc.

The main purpose of adding the < cite > element is to provide or identify the source of the quotation or any content.

The content written between the < cite > tag on the page renders in italic form, and it can be overridden in your HTML document using CSS.

Syntax

Following are other < cite > tag specifications

DisplayInline
Start tag /End tagBoth start and end tag
Usagetextual

Example

Output

HTML City tag

Attribute

Tag- specific attribute

The HTML < cite >tag contains no specific attribute.

Global Attribute

HTML < cite > tag supports all global HTML attributes.

Event Attribute

HTML < cite > tag supports all HTML attributes for Events.

Supporting Browsers

ElementChromeIEFireboxOperaSafari
<city>YesYesYesYesYes

HTML code Tag

The HTML < code > tag is used to represent the computer code. It is a phrase tag that defines a piece of code on a computer. By default, it is shown in the default monospace font of the browser (also known as the fixed-width font).

List of HTML phrase tags

TagDescription
<em>Displays the emphasized text.
<strong>Displays important text.
<dfn>Defines a definition term.
<code>The computer defines any single piece of code.
<samp>Specifies the output of the sample from a computer program.
<kbd>Defines the input keyboard.
<var>Specifies the variable.

HTML phrase tags example including code tag

Output

HTML City tag

Supporting Browser

ElementchromeIEFirefoxOperaSafari
YesYesYesYesYesYes

HTML <colgroup> tag

The HTML < colgroup > tag specifies the column group in the HTML table. In an HTML table, a parent container of one or more < col > elements is used to add different properties.

Syntax

HTML <colgroup> tag that has some of the following characteristics

DisplayNone
Start tag/End tagStart tag and End tag
usageHTML Table

Example

Output

HTML City tag

Attribute

AttributevalueDescription
alignLeftCenterRightJustifyCharIt specifies alignment of the content of the column. (Unsupported under HTML5).
charcharacterIt defines the alignment of the content of the character in a column group. (Unsupported under HTML5).
charoffnumberIt sets the number of characters needed to offset column data from the character alignment defined by the char attribute. (Unsupported under HTML5).
spannumberIt defines the number of columns that should span a colgroup.
valignTopMiddleBottomBaseline  It defines the group of columns in vertical alignment. (Unsupported under HTML5).
width%PixelsRelative_lengthThis determines the width of the column group. (Unsupported under HTML5).

Global Attribute

HTML < colgroup > tag supports all of the Global HTML attributes.

Event Attribute

The HTML < colgroup > tag supports all HTML attributes for events.

Supporting Browser

ElementChromeIEFirefoxOperaSafari
YesYesYesYesYesYes

Pin It on Pinterest

Share This