How can I make color, font and size for website title in HTML, I used “color”,“size” code but it seems to be rejected.
Welcome to the forums, @sebastianle284.
By “title”, do you mean a heading? e.g.
<h1>My page title</h1>
You simply apply CSS rules to it.
e.g.
h1 {color: #0000FF;
font-family: Arial, Helvetica, sans-serif;
font-size: 2em;
}
The old HTML attributes are outdated and should not be used. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
4 Likes
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.