Website help

Also your site code layout looks a bit weird as well. It should look like this:
HTML:
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <style></style>
         the user can’t see what’s in here
    </head>
    <body>
         the user can see what’s in here
    </body>
</html>


Please use indentation Tab.
 
Style is in the <body> tag it needs to be in the <head> tag.

Not entirely true, it doesn't have to necessarily, but it does look neater. I personally like to keep them close to the elements I apply the style to until I find the time to move it over to a CSS or SASS file.

@Mango have you taken a look at this prior to starting out with HTML? It's a great course for learners to learn a lot of elemental information about HTML and CSS.

https://www.codecademy.com/learn/learn-html
https://www.codecademy.com/learn/learn-css
 
What am I doing wrong here?

ee34e1655f1241b822690154dbe8bd2f.gif
could you post this as raw code instead? chrome doesn't show view controls for this
 
then just use flexbox. its easier, up to date, and its what the cewl kids do nowadays
CSS:
parent {
  display: flex;
  justify-content: center;
  align-items: center;
}

considering mango's current skill level debates like these are really fucking useless to this thread, if not always. if it works, it works. Everybody prefers their own way.
 
Not entirely true, it doesn't have to necessarily, but it does look neater. I personally like to keep them close to the elements I apply the style to until I find the time to move it over to a CSS or SASS file.

@Mango have you taken a look at this prior to starting out with HTML? It's a great course for learners to learn a lot of elemental information about HTML and CSS.

https://www.codecademy.com/learn/learn-html
https://www.codecademy.com/learn/learn-css

Will invest some time in it tomorrow, thanks.


could you post this as raw code instead? chrome doesn't show view controls for this
Fixed now thanks anyway
 
Also your site code layout looks a bit weird as well. It should look like this:
HTML:
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <style></style>
         the user can’t see what’s in here
    </head>
    <body>
         the user can see what’s in here
    </body>
</html>


Please use indentation Tab.
nani litteraly everything you put in the html can be viewed? wat r u on about
9TZC8o1.png
 
nani litteraly everything you put in the html can be viewed? wat r u on about
9TZC8o1.png

This happens because the HTML is invalid, the head tag contents are not visible because they should only consist of tags such as href, title, meta, etc.. If you put regular 'ol text in there most browsers will correct this by moving it to the body, assuming it's an error. Use <!-- <comment> !--> tags to place text in your <head> tags as comments.
 
Back
Top