1. What is Element?
(엘러먼트란? 즉 요소란?)
Element is
Opening Tag + Content + Closing Tag.
For example
1 | <h1> title </h1> |
The whole line of code above is called h1 element.
(여는 태그 + 내용 + 닫는 태그를 말합니다. 예를 들어 위의 한줄 전체가 h1 엘러먼트이지요)
2. What is attribute?
Element can have an attribute.
Like here.
(그럼 어트리뷰트(속성)은 뭔가요? 엘러먼트는 속성을 갖습니다. 아래를 보면요.)
1 | <style type="text/css"> ... </style> |
The type=”text/css” is attribute. And it tell exactly what kind of style.
(type=”text/css”가 속성이 되는데요.
스타일이 텍스트 중에서 정확이 어떤 텍스트인지를 말해줍니다.
자세한 추가 정보이지요)
1 | <a href="page.html"> link </a> |
href=”page.html” is attribute.
(href=”page.html” 도 속성이 되지요)
3. HTML5 Semantic Elements
1 2 3 4 5 6 7 8 | <header> <nav> <section> <article> <aside> <figcaption> <figure> <footer> |
Leave A Comment