×

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

Responsive HTML5 and CSS3 Tutorial

Introduction to HTML5 Tutorial HTML5 is the latest and upgraded version of HTML. HTML is a hypertext markup language. Technically, it is not a programming language. It is a markup language. HTML...

17 minutes read.

HTML <select> tag

This tag helps in making the drop-down list on the web page. This is highly used in HTML forms for taking the input from user. You can use the id attribute...

3 minutes read.

HTML Background Image

Inserting 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...

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 Paragraphs

In html, there are some elements which starts with new line and one of them is paragraph. Which is said to be a block of text. In html <p> tag...

4 minutes read.

HTML Nested Table

HTML nested table refers to a table that is created inside another table. The table is in the form of rows and columns. From left to right are called horizontal rows,...

5 minutes read.

HTML Forms

Forms are required when we want to collect data from the user. Html forms consists of different fields to take user inputs such as: input, text area, checkbox, password, radio...

4 minutes read.

HTML Anchor

HTML Anchor The HTML anchor tags define a hyperlink that links to other pages on one page. It can create hyperlinks to any web page and files, locations or any other...

3 minutes read.

Design a tribute page using HTML and CSS

A tribute page is a webpage based on a person who inspired us in our life. In this article, we will create a webpage of Mahatma Gandhi. We are going...

5 minutes read.

HTML Text Format

Introduction HTML may format text in two different ways. The HTML tags define a text property to make it appear one way or another. A text element may also be formatted...

7 minutes read.

HTML5 Attribute

HTML Attribute HTML attributes are special words that provide additional information about the HTML element or attributes.The element or tags have attributes, which define the element's behavior.It also adds attributes with a start...

3 minutes read.

How to change font in HTML

To give style to the content of your website, you may change the font of the text and make your website look attractive to the user. There are several methods which...

4 minutes read.

HTML Youtube

<object> element: It embed the object within the HTML documents and embed plug-ins such as Java applets, PDF readers, Flash Players etc in web pages. Example: <object width="100" height="100" data="bookmark.swf"></object> <embed> element: It defines an embedded...

1 minute read.

How to Create a Portfolio Gallery using HTML and CSS?

First, before starting this, the user should know some of the basics of HTML and CSS to create a portfolio gallery. To add more functionality to the website, we can also...

7 minutes read.

Html Wbr Tag

The Line Break Opportunity element A word break opportunity is a place in text from where the browser breaks a line. This opportunity is represented by the element wbr in the...

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.

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 Lists

HTML List HTML lists are used to specify data sets. All lists can include one or more elements from the list. HTML lists are available in three different types: Ordered List or...

4 minutes read.

Html <colgroup> Tag

A HTML table's column group is specified by the "colgroup" tag. If you want to apply various properties to one or more <col> elements in an HTML table, then you...

4 minutes read.

HTML <style> tag

The section of information that we want to style is contained in html style tag. It includes CSS, which is used to design the text and images in the web page. Syntax: <head> <title>…………....

3 minutes read.