Ask coding questions

← Back to all posts
TikTok User Gen
MatthewADev

How do I remove this ELIF error? I'm trying to do a menu but it isn't working, any help is appreciated :D!

Answered by InvisibleOne [earned 5 cycles]
View Answer
Voters
JaysonFeller
MatthewADev
Comments
hotnewtop
InvisibleOne

Under your if statement everything needs to be indented, and once it unindents there needs to be an elif statement. Your code currently looks like this:

while you code needs to look like this:

InvisibleOne

Give lines 47 through 58 an extra indent, select them and press TAB

MatthewADev

@InvisibleOne THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
IT WORKED

InvisibleOne

np @2I9

MatthewADev

@InvisibleOne Oh and one more question, how do I use this fonts on your website? I'm thinking about coding in HTML, CSS, JS

InvisibleOne

I got the font from google fonts, I'll grab the code for you quick. @2I9

InvisibleOne

First you need to import the font, so put this at the top of your style.css file

And then you can set the font with

MatthewADev

@InvisibleOne Thanks :D

InvisibleOne

no problem @2I9