What's new

Closed Please help about css

Status
Not open for further replies.

John David183

Honorary Poster
Joined
Mar 11, 2018
Posts
350
Reaction
160
Points
219
Age
23
ang hirap po nong css yesterday nagsimula ako magaral ng coding nood sa YøùTùbé tanong dito sa phc at nag code code sa laptop at isang araw palang kuhan kuha ko na html pero kinagabihan sinunud ko si css sa codeacademy pero hanggang ngayong umga hindi ko talaga siya maintindihan hel naman po please nasa baba po ginawa kung example ng html file ko
 

Attachments

html + css basics para maintindihan mo paps
read care fully mo lang to sana maka help sayo

inline css
<div style="width: 50px; height: 50px">
<p style="font-size: 20px">Welcome</p>
</div>

internal css declaration
<html>
<head>
<title>CSS Basics</title>
<style>
.container { // class used dot .
width: 50px;
height: 50px;
}
#myheading { // id used hash tag
font-size: 20px
}
</style>
</head>
<body>
<div class="container">
<p id="myheading">Welcome</p>
</div>
</body>
</html>

external file css //////////////////////////////////////
folder structure
mywebapp // save to desktop or xampp htdocs
mywebapp/index.html
mywebapp/style.css

index.html ///
<html>
<head>
<title>CSS Basics</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<p id="myheading">Welcome</p>
</div>
</body>
</html>

style.css ///
.container { // class used dot .
width: 50px;
height: 50px;
}
#myheading { // id used hash tag
font-size: 20px
}

Happy Coding
 
Status
Not open for further replies.

Similar threads

Back
Top