Question: how long would it take to learn how to build a website?
Answer: Web design basic concepts and principles ( at least 10 days) ... 
CSS + HTML + JavaScript (1 month) ... 
Must to master some Web development tools (15 days) ... 
Build your own Website (at least 1 month) ... 
Never stop learning Web design knowledge (all the time)