HTML <cite> Cite Tag
Tags: learnhtml, htmlc
Published: 2021-02-16 06:10:23

---
title: HTML <cite> Cite Tag
published: true
date: 2021-02-16 06:05:30 UTC
tags: LearnHTML,HTMLC
canonical_url: https://sharepointanchor.com/learn-html/html-cite-tag/
---

In [HTML](https://sharepointanchor.com/learn-html/ "HTML"), the Cite tag defines the **reference or title of the creative work** such as **poem** , **essay** , **script** , **film** , **painting** , etc. Usually, most of the browsers render the text inside the cite tag in **Italics**. You can change the style by using the **[CSS](https://sharepointanchor.com/learn-css/ "CSS") property**.

 **Tips** : You can use the **cite** tag or **“cite”** attribute to define the **reference source of the content** within the **blockquotes** or **q** tags.

## Syntax:

This tag contains both the **starting cite tag** and **ending cite tag**. The content is written between these two tags.

```

<cite> Enter your text here </cite>

```

### HTML cite Tag:

| HTML cite tag | Defines the reference of the source |
| Content categories | Flow content, phrasing content, palpable content. |
| Permitted content | Phrasing content. |
| Tag omission | None, both opening and closing tags are mandatory. |
| Permitted parents | Any [HTML](https://sharepointanchor.com/learn-html/ "HTML") element that accepts phrasing content. |
| Implicit ARIA role | No corresponding role |
| Permitted ARIA roles | Any |
| DOM interface | [HTML](https://sharepointanchor.com/learn-html/ "HTML") Element. The [HTML](https://sharepointanchor.com/learn-html/ "HTML") Span Element interface for this element. |

## Sample of the HTML cite Tag:

```

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
<h2>Sample for HTML Cite tag</h2>
    <p>"Don't Let Yesterday Take Up Too Much Of Today".</p><br>
<cite>Will Rogers</cite> 
  </body>
</html>

```

## Result:

![](https://sharepointanchor.com/wp-content/uploads/2021/02/Result-16.png)<figcaption>Result</figcaption>

### Download Sample File:

[HTML-Cite-Tag](https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-Cite-Tag.html)[Download](https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-Cite-Tag.html)

<script async src="//jsfiddle.net/Share_Point_Anchor/4z03mrnt/embed/html,result/"></script>

## Attributes:

The  **cite**  tag supports the  **global attributes**  and the  **event attributes**.

## Styling Methods for cite Tag:

You can use the following properties to style an [HTML](https://sharepointanchor.com/learn-html/ "HTML") cite tag.

### Properties to style the visual weight/emphasis/size of the text in cite tag:

- **CSS font-style** – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.
- **CSS font-family** – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.
- **CSS font-size** – This CSS property will help to set the size of the font.
- **CSS font-weight** – This CSS property used to define whether the font should be bold or thick.
- **CSS text-transform** – This CSS property will control the text case and capitalization.
- **CSS test-decoration** – This CSS property specifies the decoration added to text such as **text-decoration-line** , **text-decoration-color** , **text-decoration- style**.

### Styles to coloring the text in cite Tag:

- **CSS color** – This CSS property will specify the color of the text content and decorations.
- **CSS background-color** – This CSS property helps to set the background color of an element. 

### Text layout styles for cite Tag:

- **CSS text-indent** – This CSS property is used to specify the indentation of the first line in a text block.
- **CSS text-overflow ** – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.
- **CSS white-space** – This CSS property describes how white-space inside an element is handled.
- **CSS word-break**  – This CSS property decides where the lines should be broken.

### Other Properties for cite Tag:

- **CSS text-shadow**  – This CSS property helps to add the shadow to text.
- **CSS text-align-last**  – This CSS property will set the alignment of the last line of the text.
- **CSS line-height** – This CSS property defines the height of a line.
- **CSS letter-spacing** – This CSS property helps to decide the spaces between letters/characters in a text.
- **CSS word-spacing** – This CSS property specifies the spacing between every word.

## Browser Support:

![](https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-3.png)<figcaption>Browser Support</figcaption>

### Related Articles:

- **[HTML Center Tag](https://sharepointanchor.com/learn-html/html-center-tag/)**
- **[HTML Big Tag](https://sharepointanchor.com/learn-html/html-big-tag/)**
- **[Basic HTML Definitions and Usages in the Real World](https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/)**
- **[HTML Aside Tag](https://sharepointanchor.com/learn-html/html-aside-tag/)**
- **[HTML Bi-Directional Isolation Tag](https://sharepointanchor.com/learn-html/html-bdi-tag/)**

The post [HTML Cite Tag](https://sharepointanchor.com/learn-html/html-cite-tag/) appeared first on [Share Point Anchor](https://sharepointanchor.com).