개발 => 복습 후 재정리 대기/HTML && CSS

[HTML] og tag 넣기

장 상 현 2021. 5. 10.
<meta property="og:title" content="내 사이트의 제목" />
<meta property="og:description" content="보고 있는 페이지의 내용 요약" />
<meta property="og:image" content="{{ url_for('static', filename='ogimage.png') }}" />

head 태그 사이에 삽입!

 

<meta property="og:title" content="내 사이트의 제목" />
<meta property="og:description" content="보고 있는 페이지의 내용 요약" />
<meta property="og:image" content="{{ url_for('static', filename='ogimage.png') }}" />

 

og:title = "제목"

og:descrtiption = "내용 요약"

og:image = "{{ url_for('static', filename='ogimage.png') }}" // static 폴더 안의 ogimage.png 불러와서 표시!

800x400 이미지 권장

'개발 => 복습 후 재정리 대기 > HTML && CSS' 카테고리의 다른 글

[HTML] favicon 넣기  (0) 2021.06.10
[CSS] 배운 기능 정리중  (0) 2021.05.24
[HTML] 카카오톡, 페이스북 og tag 초기화  (0) 2021.05.16
[HTML] 기본 틀  (0) 2021.05.01

댓글