0

Why is html so different ?

Often times when you do something wrong in html For example : You assign the scope attribute to random text like : <th scope = "srrrwthgtur" > a </th> Nothing really happens . Ok I don't know enough "languages for programming " but I know for a fact this should return some sort of error , but it runs just fine

8th Nov 2021, 10:37 AM
Richard
Richard - avatar
3 RĂ©ponses
+ 6
As far as I know html does not return errors. It doesn't show anything when an error is there.. EDIT: AND html is not a programming languages. https://www.w3schools.com/html/html_intro.asp
8th Nov 2021, 10:46 AM
MATOVU CALEB
MATOVU CALEB - avatar
+ 5
Browsers are very error-tolerant. Concerning HTML and CSS, the browser will usually just ignore everything that it can't make sense of. On the one hand, this may be an advantage. Even if the developer messes up the page, a user may be still able get at least some information. On the other hand, this makes it very difficult for a developer – especially a beginner – to validate their code. For HTML, you can use validators that roughly check whether your site corresponds to HTML5 standards. (Like this one: https://validator.w3.org/) For Javascript, browsers have dev options that include a Javascript console.
8th Nov 2021, 11:35 AM
Lisa
Lisa - avatar
+ 1
HTML is a design component We can create any kind of websites CSS is a component improve styles JS is the component provides client side validations
9th Nov 2021, 6:29 AM
sree harsha
sree harsha - avatar