attr() CSS 함수는 CSS를 사용하여 선택한 요소의 속성 값을 반환합니다.
CSS에서 attr() 함수를 구현하기 위해 다음 코드를 실행할 수 있습니다.
예시
<!DOCTYPE html>
<html>
<head>
<style>
a:before {content: " (" attr(href) ")";}
</style>
</head>
<body>
<h2>Information Resource</h2>
<p>Resource: <a href = "https://www.qries.com">Welcome to Qries </a></p>
</body>
</html>