Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8544767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:38:22+00:00 2026-06-11T12:38:22+00:00

I cant find the text in browser when i use this code, caan someone

  • 0

I cant find the text in browser when i use this code, caan someone please help me out telling me my errors i cant seem to find the problem its all simple html and css

<html>
    <head>  <title>Header example</title>

    </head>
<style>
body {background: green; 
    height:100%;
    margin:0; padding:0;
    }

#header1 {z-index:2; 
    position:fixed; top:0; left:0; 
    width:100%; height:30%;
    }

p1 {background:#FFFF00;
    position:absolute; top: 80%; left: 5%; 
    height: 40%; width: 100%;
}
</style>
</head>

<body>
<body oncontextmenu="return false;">


        <div id="header1"> <img src="Head_img.gif" width="100%" height="100%" />
        </div>

    <div id="p1">
<p Text text text text text text text textText text text text text text text text Text text text text text text text text </p>
    </div>
</body>

</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:38:23+00:00Added an answer on June 11, 2026 at 12:38 pm

    Five major issues:

    • You have no <!DOCTYPE>
    • You have two <body> opening tags.
    • You have two </head> closing tags.
    • Your <style> block is sort of in a <head> tag.
    • You never properly open your <p> tag.

    One minor issue:

    • Your <img /> tag should have an alt attribute that holds some text describing what’s in that image.

    This code should work:

    <!DOCTYPE html>
    
    <html>
    <head>
      <title>Header example</title>
      <style type="text/css">
    body {background: green; 
        height:100%;
        margin:0; padding:0;
        }
      #header1 {z-index:2; 
        position:fixed; top:0; left:0; 
        width:100%; height:30%;
        }
      p1 {background:#FFFF00;
        position:absolute; top: 80%; left: 5%; 
        height: 40%; width: 100%;
      }
      </style>
    </head>
    
    <body>
      <div id="header1"><img src="Head_img.gif" width="100%" height="100%"></div>
    
      <div id="p1">
        <p>Text text text text text text text textText text text text text text text text Text text text text text text text text</p>
      </div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why is this not working $(this).parents(tr).find(td:eq(2)).html() I cant seam to get the text getthis
Here's an easy one straight from the text book I can't seem to find.
I cant find an answer already on stackoverlow for this. This is the simplest
I cant find one way to get this value (comment) into json using javascript.
I know this is a common problem but I can't seem to find a
i know im not the first with this problem, but i cant seem to
Hi there i am using NetBeans 7 and cant seem to find a way
i hope you can help me with this one. The code is supposed to
How do you underline a text in an XML file? I can't find an
Cant find the way to display friends, who achieve it, on achievement page. /USER_ID/achievements

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.