Computer >> 컴퓨터 >  >> 프로그램 작성 >> HTML

HTML 인용 속성

<시간/>

요소의 cite 속성은 인용문의 소스 URL을 설정하는 데 사용됩니다. 소스는 웹 페이지에 표시되지 않지만 스크린 리더에 유용합니다.

이제 요소 −

의 cite 속성을 구현하는 예를 살펴보겠습니다.

예시

<!DOCTYPE html>
<html>
<body>
<h2>What we want?</h2>
<p>PETA states,
   <q cite="https://legacy.peta.org/why-give/">We are the largest animal rights organization in the 
   world, with more than 6.5 million members and supporters worldwide. We need your continued 
   support in order to stop cruelty to animals wherever it occurs.</q>
</p>
</body>
</html>

출력

HTML  q  인용 속성

위의 예에서 태그 −

를 사용하여 따옴표를 설정했습니다.
<p>PETA states,
<q cite="https://legacy.peta.org/why-give/">We are the largest animal rights organization in the world, with more than 6.5 million members and supporters worldwide. We need your continued support in order to stop cruelty to animals wherever it occurs.
</q>

견적은 공식 웹사이트에서 가져오기 때문에 항상 인용하거나 cite 속성을 사용하여 크레딧을 제공해야 합니다. −

cite="https://legacy.peta.org/why-give/"