so is it necessary to code the HTML first and then code the css somewhere else | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

so is it necessary to code the HTML first and then code the css somewhere else

16th Aug 2016, 4:05 AM
oka martind
oka martind - avatar
4 Answers
+ 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.
16th Aug 2016, 9:40 AM
HawkEye
HawkEye - avatar
0
yes it necessary but you can define anywhere inside the tag of HTML an it also work but it's not better
16th Aug 2016, 4:15 AM
Mʀ'x Sʋʀʌj
Mʀ'x Sʋʀʌj - avatar
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
18th Aug 2016, 2:09 PM
Ross Geller
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
19th Aug 2016, 12:03 PM
shadow1435