+ 2

How to combine css and html file total ?

self learning

25th Jan 2018, 3:19 PM
Gladwyn Tay
Gladwyn Tay - avatar
5 Respuestas
+ 7
There are three ways actually: 1) By using the style attribute for each element (not recommended) 2) By adding the style tag in the head section and then writing the styling in it 3) By making a separate file for css and linking it to the main file. Other than that you can add something like CDN in link tag.
25th Jan 2018, 3:55 PM
Harsh
Harsh - avatar
+ 4
@christopher mwaniki Greetings! The advertisement of external links is considered spam. Would you please remove your link? Failure to do so will result in a block on your account.
25th Jan 2018, 4:46 PM
Harsh
Harsh - avatar
+ 2
inline by using <style> tag in html file external by using <link rel='stylesheet' type='text/css' href='path/stylesheet.css'/>
25th Jan 2018, 3:23 PM
Andreas K
Andreas K - avatar
+ 1
<link rel="stylesheet"type="text/css"href"style.css"/>
25th Jan 2018, 3:22 PM
Gladwyn Tay
Gladwyn Tay - avatar
+ 1
so does both work
25th Jan 2018, 3:28 PM
Gladwyn Tay
Gladwyn Tay - avatar