0
How to combine HTML and CSS
So I have started to learn html, I have a pretty good understanding of the language at this point I know basically all the tags and their functions, I have began to learn CSS, but my problem is how do I combine them? Do I just write the code on the same document?
5 Answers
+ 1
yes CSS goes between an opening an closing <style> tag In the head tag as follows
<head>
<style>
element{
property:value;
property2:value2;
}
or
#element_id {
property:value;
propety2:value;
}</style>
</head>
you can also store it externally as
<link rel="stylesheet" type="text/CSS" href="my file.css">
+ 1
The best approach is in an external file (style.css). This will make it very easy for you to edit a style that applies to several HTML documents by just editing one single file instead of editing all the HTML documents one by one.
0
@taghut, go play somewhere else and stop calling people liers.
0
After doing all this, how do I save it?
- 1
first open terminal emulator in your smartphone (or something like that)
and write
su
if you using apple phone
enter default password is : alpine
and write : reboot (and enter)
wait after device reboot
you will get pop up notice "Congratulation now you are a master of lie."
thanks