Can we use HTML and CSS in same web page | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 18

Can we use HTML and CSS in same web page

24th Apr 2019, 2:24 PM
Pranav
30 Answers
+ 16
<body> ----> HTML <style> -----> CSS <script> -----> Javascript
24th Apr 2019, 6:22 PM
Clueless Coder
Clueless Coder - avatar
+ 12
Sure 😁.
24th Apr 2019, 6:24 PM
Vishnu
Vishnu - avatar
+ 10
yes u can use but u know this will increase the complexity of your code so it is better to use css as an external... and hence u fill your code neat and clean and also better for understanding.. uu understand bro....
6th May 2019, 5:20 PM
Md Shadab Alam
Md Shadab Alam - avatar
+ 9
Yessss
31st May 2019, 1:20 AM
SurajGuptaOnline
SurajGuptaOnline - avatar
+ 9
Ya we can use html and css in same page👍
3rd Jun 2019, 9:42 AM
Pranav
+ 8
Yes With <style> tag that you can insert in either head or body E.g: <style> div { Color: black; } </style> Or by using "style" attribute E.g: <div style="color:black;">text</div>
26th Apr 2019, 4:31 AM
Darcy Dev
Darcy Dev - avatar
+ 7
Yes
24th Apr 2019, 2:37 PM
Abdelkader Barraj عبد القادر البراج
Abdelkader Barraj عبد القادر البراج - avatar
+ 5
yes you can use but if you use it separate then it will make your code so beautiful and easily identifiable....
29th Apr 2019, 12:11 PM
Md Shadab Alam
Md Shadab Alam - avatar
+ 5
Yes !
3rd May 2019, 1:14 PM
Joana Casais
Joana Casais - avatar
+ 4
Indeed, CSS, in fact, cannot be used WITHOUT HTML (or similar markup language) to give it structure😁
24th Apr 2019, 8:44 PM
Trigger
Trigger - avatar
+ 4
Of course yes! Use <style> tag inner <head> <style> => CSS <body> => HTML <script> => JavaScript <?php ?> => PHP
26th Apr 2019, 9:43 AM
Baltazarus
Baltazarus - avatar
+ 3
All that in one file named : html Style --> css Script --> JavaScript
25th Apr 2019, 11:47 AM
Yousef Eabitan
Yousef Eabitan - avatar
+ 3
Obviously, how are you going to style your webpage without CSS ?
25th Apr 2019, 11:54 AM
Ayan Fox
Ayan Fox - avatar
+ 3
Ideally if you want to use Master pages and inherit from this CSS provides ready to use templates
25th Apr 2019, 12:37 PM
Sanjay Kamath
Sanjay Kamath - avatar
+ 3
Yes, we can use html and css in same web page.... by using style tag < style> ...there are 3 types of style sheets .. 1.Inline 2.External 3.Internal...
25th Apr 2019, 5:56 PM
Divvela Manasa
Divvela Manasa - avatar
+ 3
it has two way: internal styling and inline styling
29th Apr 2019, 7:43 PM
Zoughi-Javad
Zoughi-Javad - avatar
+ 3
Yes it tell inline css
2nd May 2019, 3:01 PM
Ariful
Ariful - avatar
+ 3
surely you can use html, css and js codes all in one page.
2nd May 2019, 5:20 PM
Zoughi-Javad
Zoughi-Javad - avatar
+ 3
Yes sure!! HTML: Structure CSS: Presentation JavaScript: Behavior PHP : Backend CMS: Content Management
6th May 2019, 3:19 PM
Noemi Pallotti
+ 2
Yes. Use the style tag ( <style> ).
25th Apr 2019, 9:01 AM
Blah