HTML Code Error: Font Size


#1

Hi Community,

My code isn't working and I am fairly certain that it is error-free. I've seen the conversation around Chrome browsers having caused this error so I replicated in Safari but got the same result. Any help would be greatly appreciated.

Thank you,

Here is a screenshot:


#2

You can see that the colour of your tags changed after your <style> tag. And I see that you didn't end the style properly and have an extra > after Big title.

Now, for style, you need an actual element to put it in. It is because style is just an attribute. You can't just have a <style>. It needs to be like

<body style="insert style here"> </body>
or 
<span style="insert style here"> </span> for inline
or
<div style="insert style here"> </div> for block

So you need to work on that.
In this case, put your style "tags" into <h1> and <li>. h1 for your Big title and li for your lists. DON'T put style in body.
Should be something like this:

<body>
    <h1 style="your style here">Big title</h1>
    <ol>
        <li style="your style here">insert content</li>
        <li style="your style here">insert content</li>
        <li style="your style here">insert content</li>
    </ol>
</body>

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.