---
title: "How to use CSS attr() Function"  
description: "How to use CSS attr() Function"  
author: "Anonymous User"  
published: 2015-12-30  
updated: 2015-12-30  
canonical: https://www.mindstick.com/forum/33815/how-to-use-css-attr-function  
category: "css-css3"  
tags: ["css-css3", "css"]  
reading_time: 1 minute  

---

# How to use CSS attr() Function

I want to use [CSS](https://www.mindstick.com/forum/514/background-gradient-ie7-css-problem) attr() [Function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) How to do this please help me.

## Replies

### Reply by Anonymous User

```
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Forum.aspx.cs" Inherits="Forumasp.Forum" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title> <style>a:after {content: " (" attr(href) ")";}</style></head><body> <a href="http://www.mindstick.com">Go to mindstick.com</a<a href="http://www.mindstick.com/DeveloperSection">Go to mindstick ' DeveloperSectionl</a> </body></html>
```

![How to use CSS attr() Function](https://www.mindstick.com/mindstickforums/5fc754fc-8e82-415f-b0b0-e48ca15f0405/images/d9191e9c-11ed-46e6-9b2b-9bc2a98b053b.png)


---

Original Source: https://www.mindstick.com/forum/33815/how-to-use-css-attr-function

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
