On 'Make a Website' 4/10 I don't know where to insert the line h1{font-family: Palatino, 'Palatino Linotype', serif;} can someone help?


#1

Here is my attempt


#2

you need include style in main.css file

h1 {

}


#3

Thanks for your help, do you mean I inserted the information in the wrong place? could you be more clear where it needs to go? Do you mean after the bit that says "main.css" and before the />?
Thanks again!


#4

You can include you style in 3 ways.

Inline CSS: with in your h1 tag
<h1 style="font-family: Palatino, ‘Palatino Linotype’, serif;">mystwood publishers ltd.</h1>

Internal CSS: with in head tag using style tag

<style>
h1{font-family: Palatino, ‘Palatino Linotype’, serif;}
</style>

External CSS: using link tag include stylesheet in your page(main.css)

h1{font-family: Palatino, ‘Palatino Linotype’, serif;}


#5

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