It is "/" forward slash; it is "\" backward slash — the idea of being forward and backward we can get by checking their head, understand the upper part of the slash is a head.
In html 5, forward slash isn't used in lonely-tags, means they aren't opening and closing tags but stands alone like, <br>, <hr>, <link> and so forth.
The elements which have opening and closing tags, use forward slash like the below:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div>
<p> </p>
</div>
</body>
</html>
Note: One way to remember "forward slash" is to know "address bar" in a browser also uses forward slash.
Comments
Post a Comment