HTML City tag

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

<city>Cited Content……..</city>

Following are other < cite > tag specifications

DisplayInline
Start tag /End tagBoth start and end tag
Usagetextual

Example

<!DOCTYPE html>
<html>
<head>
            <title>Cite Tag</title>
</head>
<body>
            <h2>Example of cite tag</h2>
            <img src="htmlpages/images/book.jpg" height="150" width="120">
<p>A famous book:
<cite> The Learning web </cite> written by jannifarNiederst Robbins</p>
</body>
</html>

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

<!DOCTYPE html>
<html>
<em>It is inside em tag.</em><br>
<strong>It is inside strong tag.</strong><br>
<dfn>It is inside dfn tag.</dfn><br>
<code>It is inside code tag.</code><br>
<samp>It is inside samp tag.</samp><br>
<kbd>It is inside kbd tag.</kbd><br>
<var>It is inside var tag.</var>
</html>

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

<colgroup>……</colgroup>

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

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

Example

<!DOCTYPE html>
<html>
<head>
            <title>Colgroup tag</title>
</head>
<body>
<h2>Example of Colgroup Tag</h2>
<table border="1">
            <colgroup>
                        <col  style="background-color: green" width="40">
                        <col span="2" style="background-color:        #ff7256" width="80">
            </colgroup>
            <tr>
                        <th>Sr.No</th>
                        <th>Product</th>
                        <th>Price</th>
            </tr>
            <tr>
                        <td>1</td>
                        <td>suger</td>
                        <td>65</td>
            </tr>
            <tr>
                        <td>2</td>
                        <td>oil</td>
                        <td>160</td>
            </tr>
            <tr>
                        <td>3</td>
                        <td>rice</td>
                        <td>89</td>
            </tr>
</table>
</body>
</html>

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