0

HTML

Does anybody know the use of the style tag on html?

15th Aug 2019, 9:05 AM
odum dubem
odum dubem - avatar
9 Respuestas
+ 1
You can add it in the head tag like <!DOCTYPE html> <html> <head> <style> body { background-color: #444; } p { color: red; } </style> </head> <body> <p class="para" style="font-size: 100px">I am a paragraph</p> </body> </html> Or you can add css file as external file and link it into the html file by using link tag into head tag
15th Aug 2019, 9:15 AM
Safaa Alnabhan
Safaa Alnabhan - avatar
+ 1
Here I used the three possible ways / style tag / style attribute and external by linking it <link rel="stylesheet" type="text/css" href="style.css" /> Or you can use javascript to style the html elements.
15th Aug 2019, 9:20 AM
Safaa Alnabhan
Safaa Alnabhan - avatar
+ 1
You will add the <style> tag in the <head> tag like <head> <style> <!-- Here you write css code like--> body { background-color: red; } </style> </head>
15th Aug 2019, 9:25 AM
Safaa Alnabhan
Safaa Alnabhan - avatar
+ 1
I suggest to learn these things from google by doing some search you can find a lot of examples without going confused
15th Aug 2019, 9:27 AM
Safaa Alnabhan
Safaa Alnabhan - avatar
0
sorry im new at this can you just tell me the basics like from the beginning
15th Aug 2019, 9:17 AM
odum dubem
odum dubem - avatar
0
and what of the times that im confused like i need to ask questions
15th Aug 2019, 9:30 AM
odum dubem
odum dubem - avatar
0
thanks a lot koder king
15th Aug 2019, 9:35 AM
odum dubem
odum dubem - avatar
0
<!DOCTYPE html> <html> <head> <title> Hello World </title> <style> /* CSS goes here */ </style> <body> <!-- HTML goes here --> </body> </html>
15th Aug 2019, 12:47 PM
TheAmazingCoder2307
0
koder king i went somewhere on html and css
19th Aug 2019, 4:40 PM
odum dubem
odum dubem - avatar