×

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

Related Topics

HTML <source> tag

For media attributes, such as <video> tag, <audio> tag, and <picture> tag, we use the <source> tag in html for adding such type of multiple media html elements in our...

4 minutes read.

HTML <address> Tag

Hyper Text Markup Language, HTML is the best markup language for creating Web pages. HTML consists of a wide variety of elements. In all of these elements, one element is...

4 minutes read.

How to insert image in HTML

An image (technically digital image) in HTML or even in general technical aspects is a binary representation of visual information. By visual information we mean, in the form of drawings/pictures,...

5 minutes read.

HTML Ordered List

We use <ol> tag to make an ordered list in html. An ordered list is made to make a list of items in ordered form, ordered list can be either...

3 minutes read.

HTML Form Input Types

HTML Form Input Types An important element of the HTML form is < input type= "> in HTML. The type attribute of the input element can be of different types, which...

8 minutes read.

How to create a link with no underline in HTML

In HTML, an anchor tag (<a>) is a Styled Container tag, which means when a hyperlink is created using this, browsers, by default, display the link by applying some styles...

5 minutes read.

HTML <summary> tag

When we simply want to show the primary heading or topic name of hidden detailed material to users, then we can achieved this by using the summary tag. This makes it...

2 minutes read.

HTML Font Size

The HTML <font> tag uses the size attribute to specify the size of the text. We can set the size attribute’s value from 1 to 7. The default size of...

4 minutes read.

HTML <u> tag

Underline Element/Tag: The u tag in html is used to specify the important text or phrase by underline. In earlier HTML versions, this element was known as the "Underline" element, and...

5 minutes read.

Div Tag in HTML

In HTML, ‘div’ is a tag that specifies division or section in HTML document. But before going in detail of it, let’s first understand about tags in HTML. The tag...

8 minutes read.

HTML <body> tag

HTML means Hyper Text Markup Language, which is most preferred for making Web pages. It explains how a Web page is put together. There are many different elements in HTML,...

3 minutes read.

HTML Headings

The titles and subtitles of our webpages are known as HTML headings. Let’s not talk about webpages but giving heading to almost everything like normal paragraphs, articles or let it...

2 minutes read.

How to append HTML code to a div using JavaScript?

In HTML, we have a div tag which is used to create a box where we can put a lot of other tags. So it works like a container. So,...

4 minutes read.

Html &lt;dd> Tag

In an HTML description list, an item's definition or description is indicated using the definition description ("dd" tag). A <dd> tag can contain paragraphs, line breaks, images, links, and lists. It...

4 minutes read.

HTML Unordered List

In HTML, we have <ul> tag which defines the unordered list. And it is also known as bulleted list, because as we know it is not ordered list therefore it...

2 minutes read.

HTML <strong> tag

The strong element in HTML is used to display the real significant information in bold so that the user or reader will understand it easily. Syntax: <p> <strong>………… </strong> </p> Example Here, we will demonstrate how to...

2 minutes read.

HTML Frames

Frames in Html is used to divide the browser into different sections where each section can load different Html documents. Collection of frame is known as Frameset. Creating frames:We use frameset...

2 minutes read.

HTML Button Disabled

The HTML <button> element has many attributes, one of them is the disabled attribute. The button on which you apply the disabled attribute will not work, or we can say...

4 minutes read.

Font tag in HTML

HTML stands for Hypertext Mark-up Language and is used to create web pages and other information that can be later displayed in a web browser. It also consists of a...

4 minutes read.

HTML Event Attributes

HTML Event Attributes If a browser responds to the user behavior, an event is called. For example, if we click on the submit button, a box of details will appear on...

4 minutes read.