c# - not understanding simple page -
I'm trying to understand this tutorial
I have I'm trying out a test page
@ {layout = zero; } & Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta name = "viewport" content = "width = device-width" /> & Lt; Title & gt; Test & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div & gt; Hello there & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt; But when I run the page, nothing shows up
F12 shows:
I can not understand what I'm doing?
I am also trying this test project ... same problem:
< p> Make sure you are trying to do with @ {layout = tap; } Part of the top, try to delete that if you are looking to display a variable in the HTML section, then it is the place where you want to define that variable (at least it seems that How are you working in the tutorial) like: @ {var myValue = "there"; } and that variable in the HTML section
& lt; Div & gt; Hello @ Mary Well & lt; / Div & gt; Edit: As soon as you learn, another good habit is to use the debugger (if you are using Chrome, F12) to enter. There is a lot of time when something goes wrong, it will help you to determine what is the problem.
Comments
Post a Comment