본문 바로가기
OLD_달려라/Web

HTML ] Elements

by 달승 2020. 11. 10.

 

 

Elements

An HTML element is defined by a start tag, some content, and an end tag.

 

 

Start tag Element content End tag
<h1> text </h1>
<p> text </p>
<br> none none

 

 

 

Nested HTML Elements

HTML elements can be nested (this means that elements can contain other elements).

All HTML documents consist of nested HTML elements.

The following example contains four HTML elements (<html>, <body>, <h1> and <p>):

 

 

****** Never rely on this! Unexpected results and errors may occur if you forget the end tag!

 

 

 

Empty HTML Elements

HTML elements with no content are called empty elements.

The <br> tag defines a line break, and is an empty element without a closing tag:

 

 

 

HTML is Not Case Sensitive

HTML tags are not case sensitive: <P> means the same as <p>.

The HTML standard does not require lowercase tags, but W3C recommends lowercase in HTML, and demands lowercase for stricter document types like XHTML.

 

 

 

 

 

'OLD_달려라 > Web' 카테고리의 다른 글

django ] django란?  (0) 2020.11.25
웹 프로그래밍 튜토리얼 ] poiemaweb  (0) 2020.11.13
HTML ] Basic Examples  (0) 2020.11.10
HTML ] Editors  (0) 2020.11.10
HTML ] Introduction  (0) 2020.11.10

댓글