Skip to content
Sign upLog in
← Back to Community

how do i change the font of the title

Profile icon
weast

I don't know how to change the font for the title

Voters
Profile icon
MFs2
Profile icon
weast
Comments
hotnewtop
Profile icon
Grify

That body text should be in your body, not the space in between your head and body just so we're clear.

If you want to style the element, you can't. That is handled by the browser and there is no protocol for changing it yet.

If you want to style the "Top Ten Pastas" then use a tag with maybe a

instead of a , elements are the lines of text at the top of tabs in most browsers

Profile icon
Grify

@Grify
This should fix it:

<html> <head> <meta charset="utf-15"> <meta name="viewport" content="width=device-width"> <title>Top Ten Pastas</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <h1><font color="red">I bet your thinking, what pasta is the best pasta, well I'm here to tell</font></h1> <script src="script.js"></script> </body> </html>```
Profile icon
Grify

As a rule of thumb, you should never have floating text, especially outside of your body. Things that appear on the website itself are for the body, and the head is for metadata (like specifying language of the website and other info for browsers and search engine spiders), so keep your metadata in the head and your content in your body.