Looking at my .aspx
page, I have the following code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="BootStrap.css" rel="stylesheet" type="text/css" />
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="navbar" class="col-xs-12"></div>
<h3> Loading... </h3>
</body>
</html>
After adding the h3
tag, I noticed a gap above the navbar
element:
https://i.sstatic.net/7AklM.png
However, upon removing the h3
element, the gap disappeared:
https://i.sstatic.net/TVhO6.png
Further exploration revealed that changing the tag to:
<asp:h3> Loading... </asp:h3>
also eliminated the gap. Yet, this modification triggered a warning in VS:
Element 'h3' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.
Can anyone explain what causes this gap when using non-asp elements on an asp page? And do you think the warning message should be a cause for concern?