HTML Learning (3) foundation

* Start tag often referred to as a start tag (opening tag), often called a closed end tag label (closing tag).

* Although sometimes forget to write the closing tag some browsers can display the contents properly, but sometimes unexpected results or errors occur, so do not forget to write, develop good habits.

HTML title (heading)

Defined by <h1> to <h6> tags, for example: <h1> This is the title 1 </ h1> ... <h6> This is the title 6 </ h6>. In which the larger the number, the larger the font.

HTML paragraph

... </ p> tag defined by <p>.

HTML links

Defined by a, Example: <a href="http://www.baidu.com"> Baidu Home </a>

HTML image

Img is defined by, for example: <img src = "xxx / logo.jpg" width = "123" height = "456" />

HTML empty element

HTML elements without content are called empty elements. Such as the definition <br> label wrap.

Empty elements are closed in the start tag, <br /> empty element is off the right way, even if <br> wording is valid in all browsers, but <br /> actually more long-term protection.

Recommended to use lowercase tags: HTML is not case sensitive, but the World Wide Web Consortium (W3C) HTML 4 in the recommended use lower case, and in the next version of HTML (X) is forced to use lower case.

HTML Tag Reference: https://www.runoob.com/tags/html-reference.html

Guess you like

Origin www.cnblogs.com/1016391912pm/p/11525329.html