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
Display | Inline |
Start tag /End tag | Both start and end tag |
Usage | textual |
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
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
Element | Chrome | IE | Firebox | Opera | Safari |
<city> | Yes | Yes | Yes | Yes | Yes |
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
Tag | Description |
<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
Supporting Browser
Element | chrome | IE | Firefox | Opera | Safari |
Yes | Yes | Yes | Yes | Yes | Yes |
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
Display | None |
Start tag/End tag | Start tag and End tag |
usage | HTML 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
Attribute
Attribute | value | Description |
align | LeftCenterRightJustifyChar | It specifies alignment of the content of the column. (Unsupported under HTML5). |
char | character | It defines the alignment of the content of the character in a column group. (Unsupported under HTML5). |
charoff | number | It sets the number of characters needed to offset column data from the character alignment defined by the char attribute. (Unsupported under HTML5). |
span | number | It defines the number of columns that should span a colgroup. |
valign | TopMiddleBottomBaseline | It defines the group of columns in vertical alignment. (Unsupported under HTML5). |
width | %PixelsRelative_length | This 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
Element | Chrome | IE | Firefox | Opera | Safari |
Yes | Yes | Yes | Yes | Yes | Yes |