Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

Never Skip the End Tag

Certain HTML elements will render correctly even if you overlook the closing tag.

Example

<html>
<body>

<p>This is a paragraph
<p>This is a paragraph

</body>
</html>

Nevertheless, it’s not advisable to depend on this behavior! Forgetting the closing tag may lead to unexpected outcomes and errors!

Empty HTML Elements

Empty elements in HTML have no content.

The <br> tag, which signifies a line break, is an example of an empty element that lacks a closing tag.

Example

<p>This is a <br> paragraph with a line break.</p>

HTML is Not Case Sensitive

HTML tags are insensitive to case: <P> is equivalent to <p>.

While the HTML standard doesn’t mandate lowercase tags, C7S suggests using lowercase in HTML and mandates lowercase for more rigorous document types such as XHTML.

 

Click to Learn