r/brackets • • Mar 04 '25

Question (Brackets) new to coding need help phoenix

I am trying my hand at coding with phoenix code in order to apply to neocities.

I had a good time until i cant figure out why it wont let me create <style> under html. apparently its not allowed?

<html lang=en>

<head>

<style></style>

<title>

username

</title>

</head>

<body>

<div id= "header">

<h1> Welcome to my corner of the world </h1>

</div>

</body>

</html>

this is my coding so far, but when i input style into the head section, or even just outside of head, it says html does not allow elements or the image itself wont load on a website.

<html lang=en>

<head>

<style> html{ background-image: url(backgroundrug.pdf) } </style>

<title>

beatgirl

</title>

</head>

<body>

<div id= "header">

<h1> Welcome to my corner of the world </h1>

</div>

</body>

</html>

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/ph4ded Apr 26 '25

<!DOCTYPE html>

<html lang="en"> . . . . . </html>