First, HTML is not a programming language, it's a markup language, it contains no programming logic.
And to answer your question, start by learning algorithms and data structures then choose a language. I would suggest Python for its simplicity. Then, learn the basics of the language you've chosen (variables, types, operators, lists, conditions, loops, functions, classes, objects, dictionaries, modules and packages). Once you are ok with the latter, find a project you are motivated to work on. That's when the learning starts. Reading tutorial after tutorial won't help, at least for me. I've found that the fastest way to progress is to work on my own project, and if you have questions you can post them on StackOverflow and you'll get help in minutes.
It took me years to try to learn a language and create some pretty advanced bots, but it only worked when I started working on my own projects, so I learn and research only what I need.
Why Python?
If your goal is to create bots this is the best IMO. You've Selenium, that enables you to automate almost any action on browsers and Beautifulsoup that makes scrapping an easy task.
Beside learning programming, you'll still have to learn some query languages as xPath (for scrapping) or Regex (for defining a search pattern).
Buckle up, and prepare for a hell of a ride!