scheme-dojo / scheme-dojo.github.io

0 stars 0 forks source link

Changing class and id names #6

Closed mre1ght closed 2 months ago

mre1ght commented 2 months ago

I missed it in yesterday's review. sorry.

  1. Change the id name from answer-btntoenter-btn
  2. Unify the class name and id name. (Please correct any other mismatches between the class name and ID name.)

Before (Just an example)

        <input class="input" id="input-tag" type="text" placeholder="Input your answer and then press enter button" /> 
        <button class="input" id="answer-btn" >Enter</button>

After

        <input class="input-tag" id="input-tag" type="text" placeholder="Input your answer and then press enter button" /> 
        <button class="enter-btn" id="enter-btn" >Enter</button>
rhmtrz commented 2 months ago

@rabiarz

Please read the below article on how to choose a name for the class of HTML tags.

https://medium.com/@erennaktas/how-should-class-naming-be-in-html-clean-code-8703425a1c3e