0
so is it necessary to code the HTML first and then code the css somewhere else
4 Respostas
+ 2
css can be used in two ways. the first is used between the head tags in the external file . the second style tag between the HTML tags you can use anywhere you want.
0
yes it necessary but you can define anywhere inside the tag of HTML an it also work but it's not better
0
You should always code the HTML first. Web pages are for content so your content is the most important elements on the page.
Also try to keep your CSS external from your html whenever possible it makes it much easier to change or restyle later
0
no but it is a preferred practice to make maintenance of large projects easier and also make the css code reusable for some other webpage