프로그래밍 언어/Html
-
HTML 요소프로그래밍 언어/Html 2024. 7. 15. 22:12
HTML 요소( Element ) 요소는 웹페이지를 구성하며, 데이터 항목, 텍스트 묶음, 이미지 등을 담을 수 있다. HTML 요소의 주요 부분은 다음과 같다.1. 여는 태그 : 요소의 이름으로 구성되며, 요소가 시작하는 곳 임을 나타낸다.2. 닫는 태그 : 여는 태그와 마찬가지로 요소의 이름으로 구성되어 있지만, 앞에 슬래시( / )가 포함되어 있으며, 요소가 끝나는 곳 임을 나타낸다.3. 콘텐츠 : 요소의 내용4. 요소 : 요소는 1, 2, 3번으로 이루어져있다. 또한, 요소는 속성을 가질 수 있다. 속성은 실제 콘텐츠로 표시되길 원하지 않는 정보를 담고 있다. 위 코드에서는 Class 속성을 이용해 Head 태그에서 요소를 특정하여 스타일이나, 색상 등 다..
-
HTML과 기본 구조프로그래밍 언어/Html 2024. 7. 15. 22:02
HTML이란? Hypertext Markup Lanaguage의 줄임말로 웹 컨텐츠의 의미와 구조를 정의할 때 사용한다. 여기서 Hypertext는 HTML: Hypertext Markup Language | MDN (mozilla.org) 와 같이 웹페이지를 다른 페이지로 연결하는 링크 말하며, 웹의 근본적인 속성인 링크를 통해 다른 사람이 만든 페이지로 연결할 수 있다. HTML은 컨텐츠를 표시하기 위해 마크업을 사용한다.HTML에서 사용되는 마크업에는 다양한 요소가 존재하는데, Body입니다.