Hello Guys

Can you please help me, I'm getting an error message: Element 'html' cannot be nested within element 'div'.
I have been trying for a long time to fix this problem. One of the solutions I tried was to delete that linr completely but nothing was being returned upon running the application.
It is being detected where I've highlightd in the code below.

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
      <html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
    <title>Picture Upload</title>
</head>

Thank you

I am not really good at coding myself but I think that this is how is should be ordered. Anyone correct me if I am wrong. Hope it helps!

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
    <title>Picture Upload</title>
</head>

<form id="form1" method="post" runat="server" >
<Div>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</div>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.