It will not take more than 1-2 weeks to learn HTML and CSS and take about a month of practice to get comfortable with HTML and CSS. The most important thing is to apply your learning and build projects. Start with building a simple project like creating is your own personal website.
If you are interested in Web Development, check out these Web Development Courses by Intellipaat.
Also, check out this YouTube Tutorial to learn HTML: