Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multiple inline styles not displaying properly

Tags:

html

inline

Sorry, a designer here (not a developer). I am having an issue with only the first attribute being applied and inability to apply any others after the first one. I know the best way is through CSS, but sometimes a need a quick simple job and can't spend the time to develop or edit a CSS properly.

Here's what I have, what is wrong?:

<!DOCTYPE html>
<html>
<body>

<div style="text-align:center;" style="font-decoration-style:bold;" style="text-decoration-color:red;">Helloooo!</div>


</body>
</html>
like image 396
mai Avatar asked Jan 28 '23 09:01

mai


1 Answers

Sorry but you can only have one attribute of a kind for each element in HTML. Try this instead:

    <!DOCTYPE html>
    <html>
      <body>
        <div style="text-align:center; font-weight:bold; color:red;">Helloooo!</div>
      </body>
    </html>
like image 111
rafaelcastrocouto Avatar answered Jan 31 '23 07:01

rafaelcastrocouto