+ 1
How to make a working button on web
8 Réponses
+ 8
Let's learn HTML together, Zed . You'll learn how to make a button for the web and do many other things. While learning, if you have doubts, show your attempts and ask questions. You'll be a pro before you know it! - Happy Coding!
+ 6
Zed ,
So what do you want,Readymade code?.
First learn the lesson again with carefully,
and try by yourself,after this if you face any problems in during learning or making code then ask here.
Note that..Providing `readymade` code, this feature is not available here.
Otherhand,
If you're having trouble in code or learning, share your code and then describe what error message you're receiving. without watching no one can figure out what's going wrong.
Attention:-use searchbar before asking any questions..
https://code.sololearn.com/W0uW3Wks8UBk/?ref=app
+ 3
Do you mean by working button is apply events on the button?
+ 3
Zed ,
Complete 3 courses: HTML, CSS, JS so that you'll be able to make buttons and apply event to it once clicked.
In HTML, there is a "button" tag which allows you to make a button.
Syntax: <button `ATTRIBUTE IF NEEDED`></button>
Where `ATTRIBUTE IF NEEDED` (optional) is the attribute of the element. It is not optional..
In JS, there's a function called `element.addEventListener(event,function)`
Where:
`element`: The HTML id (or class I don't know) element you want to apply an event. (document.getElementById("idHere");)
`event`: Defines how the element should be interact/clicked to trigger an event. E.g: "click", "focus",etc.
`function`: The function to trigger when the event occurs.
+ 2
<button></button>
0
Yes
0
Bonsoir svp on compile le code où??