+ 3

Can we use both HTML and css in same webpage?

20th Oct 2018, 7:42 AM
Shwetha N
Shwetha N - avatar
5 Answers
+ 2
HTML is used to structure your page, enter your headings, tables, lists, paragraphs, etc and CSS is used to style your page and make it look nicer, Otherwise its just plain old text. CSS and HTML go together, yes you can have an HTML page without CSS but it'd be ugly
20th Oct 2018, 7:58 AM
SomDorrie
+ 2
Yes, you can do that by using style tag! ex. <body> <p> I love SoloLearn </p> <style> color:red; font-family: cursive; </style> </body> You can also use style attribute to decorate a single line! ex. <p style="color:red; font-family:cursive;"> I love SoloLearn</p>
20th Oct 2018, 8:29 AM
AL Araf
AL Araf - avatar
+ 1
Yes. Read about <style> tag
20th Oct 2018, 7:46 AM
ŠœŠøŠŗŠ¾Š»Š° Š¤ŠµŠ“Š¾ŃŃ”Ń”Š²
ŠœŠøŠŗŠ¾Š»Š° Š¤ŠµŠ“Š¾ŃŃ”Ń”Š² - avatar
0
yes you can, by using inline css or internal and i find it to be the easiest for me using internal css
1st Nov 2018, 8:49 PM
charles mukuka
charles mukuka - avatar
0
Yes you can
5th May 2019, 7:19 PM
charles mukuka
charles mukuka - avatar