Horje
How to Close Empty HTML Elements

In HTML, it is optional to close empty elements.


Allowed:

<meta charset="utf-8">

Also Allowed:

<meta charset="utf-8" />

If you expect XML/XHTML software to access your page, keep the closing slash (/), because it is required in XML and XHTML.
Reffered: https://www.w3schools.com/html/html5_syntax.asp





Related Articles
What is HTML Style Guide HTML Style Guide
How to create Always Declare Document Type HTML Style Guide
How to Use Lowercase Element Names HTML Style Guide
How to Close All HTML Elements HTML Style Guide
How to Use Lowercase Attribute Names HTML Style Guide
How to create Always Quote Attribute Values HTML Style Guide
How to create Always Specify alt, width, and height for Images HTML Style Guide
How to create HTML Spaces and Equal Signs HTML Style Guide
How to Avoid HTML Long Code Lines HTML Style Guide
How to create HTML Blank Lines and Indentation HTML Style Guide
How to create Never Skip the <title> Element HTML Style Guide
What is Omitting <html> and <body> HTML Style Guide
What is Omitting <head> HTML Style Guide
How to Close Empty HTML Elements HTML Style Guide
How to Add the lang Attribute HTML Style Guide
What is Meta Data HTML Style Guide
How to Set The Viewport HTML Style Guide
How to set HTML Comments HTML Style Guide
How to use Style Sheets HTML Style Guide
How to load JavaScript in HTML HTML Style Guide
How to access HTML Elements with JavaScript HTML Style Guide
How to Use Lower Case File Names HTML Style Guide
What is File Extensions HTML Style Guide
What is the Differences Between .htm and .html? HTML Style Guide
What is Default Filenames HTML Style Guide

Single Articles
Allowed:HTML Style Guide
Also Allowed:HTML Style Guide

Read Full:
HTML Style Guide
Category:
Web Tutorial
Sub Category:
HTML Style Guide
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
45



Share on: