+ 2
CSS doesnot work when I put it in head tag but works when I put in body tag.does anyone have same problem??
CSS working
17 odpowiedzi
+ 1
do you put tag like this:
<head>
<style>
</style>
</head>
?
+ 5
as suspected, you got multiple typos: it should be forwarded slash and not back slash. the following should work (copy and paste if you want)
<!doctype html>
<html>
<head>
<style type="text/css">
p {color:green;}
</style>
</head>
<body>
<p>problem with css solved? </p>
</body>
</html>
+ 2
as suspected, you got multiple typos: it should be forwarded slash and not back slash.
+ 2
if my answer helped you, please consider marking it as the beste answer. I'd highly appreciate. :)
+ 1
check for typos of the <style>- and <head>-tags. it should work the way Nikola mentioned
+ 1
remove type in style tag, try that :)
+ 1
yeah for sure I am quite busy now when I will try I will let you know by marking your answer the best.
0
yes I put in the same way
0
Hmm can you share code? :)
0
yeah sure
0
<html>
<head>
<style type="text/css">
p {color:green;}
<\style>
<\head>
<body>
<p>I have problem with css<\p>
<\body>
<\html>
0
In the same way when I work with other attributes it doesnot work
0
does brower have any effect on coding??
0
ok
0
no I am writing from my mobile thats why there are typos but when I write code on my laptop I am very careful.
0
@Thanh bravo
0
ok thanks tanh le and nikola stojiljkovic