0
HTML
Does anybody know the use of the style tag on html?
9 ответов
+ 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
+ 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.
+ 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>
+ 1
I suggest to learn these things from google by doing some search you can find a lot of examples without going confused
0
sorry im new at this can you just tell me the basics like from the beginning
0
and what of the times that im confused like i need to ask questions
0
thanks a lot koder king
0
<!DOCTYPE html>
<html>
<head>
<title> Hello World </title>
<style>
/* CSS goes here */
</style>
<body>
<!-- HTML goes here -->
</body>
</html>
0
koder king i went somewhere on html and css