Questions tagged [document-body]

The body is part of an HTML document. It contains the content of that document.

268 questions
-1
votes
2 answers

Alert function not working in Body tag

Hello World!

why doesn't this work? EDIT Additionally, why does chrome dev tools report "Uncaught SyntaxError: Unexpected token } " that as the error message? Thanks, funbeans
Dave2081
  • 339
  • 2
  • 5
  • 15
-1
votes
1 answer

Grab Body contents and wrap it within an element to show sort of like an iframe

Ok, so I need all of the html within the body tag to be wrapped within a
that lives within the body tag (deep within it). This code needs to run from within the tag itself, so am thinking we'll need to append the code to…
Solomon Closson
  • 6,111
  • 14
  • 73
  • 115
-1
votes
1 answer

Can you create a second on a html page? (Website in website)

Ok, my title may sound confusing, but I don't know a better summarized way to describe it. (feel free to change). The thing is: I've built a wayfinder for school, as a school project. I want to use it for my portfolio. But the wayfinder is built on…
Sander Schaeffer
  • 2,757
  • 7
  • 28
  • 58
-2
votes
1 answer

Why is there a white space at the beginning of the body/html document (on top of the navigation bar)?

check the code here: https://landing-page.adrianojedaf.repl.co I thought it could be the overflow-x so I disable the Scroll Bar in CSS but the white space on top of the navigation-bar is still there. When I use the Browser's inspector, it seems like…
Adrian F
  • 31
  • 5
-2
votes
1 answer

Title is showing in page when its inside

I made a short and basic website and the title is showing in the page. I put the title inside head when i wrote it but it is inside body when i use the inspect tool on it. Screenshot of code editor and inspect tool on chrome Code is below: …
-2
votes
1 answer

PHP Dynamic body ID from Current Page Name

Hi i want a function on external php file like this or similar; basename($_SERVER['REQUEST_URI'], '.php'); to replace the id of my body depending of the name of the page im on ex. page : infoweb.com/info.php?page=contact ex. body id="{bodyID}"…
-2
votes
1 answer

Why is all content on my home page overflowing the body border?

On my home page Kendall_Gregory.html, my body border is ignoring the contents in the body and setting an arbitrary border around the page. It ignores every image that is on the page and the divs around them. The same code works on other pages and i…
ImJessW
  • 41
  • 6
-3
votes
5 answers

running into issues with html and css

I have a class named body. I'm adding some CSS to it. I already had a property called background color and I'm trying to add another property, once I added it both properties it wasn't working and I want to know why?
-3
votes
1 answer

HTML issue - The first table starts after a long gap

As per the screenshot, please guide me as how do I start the table heading from top of the page. sharing some extract of the code below. Plus the @media query does not work in Iphone properly. I have checked in an android device and it works like…
-3
votes
1 answer

BODY tag is added even when I delete it

I have this strange issue that body is not where I wrote it in the code. First it was loading before head tag, now it's before header tag even thought it starts after. Also, If i delete it it gets generated in some weird places before head and…
Nanina
  • 117
  • 1
  • 8
-4
votes
2 answers

Body isn't taking cover of the whole screen

In my css: body { background-color: black; color: white; margin: 0; font-family: 'Montserrat', sans-serif; padding: 0; /* animation: scroll 5s; */ } After this code in the body tag, the body is still not taking up the whole…
-4
votes
1 answer

How te send a POST with both URL parameters and a JSON body?

I found how to send a POST with URL parameters, or how to send a POST with a JSON body, but I do not know how to combine them together (a request with both a URL with parameters, and a JSON body). The code below (which is not correct) shows the…
WoJ
  • 27,165
  • 48
  • 180
  • 345
-5
votes
3 answers

Elements outside is taken inside

I have the following code:
hi
Rajesh Paul
  • 6,793
  • 6
  • 40
  • 57
1 2 3
17
18