🔒 Closed Please help about css

Status
Not open for further replies.

John David183

Honorary Poster
ang hirap po nong css yesterday nagsimula ako magaral ng coding nood sa youtube 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

  • IMG_20180426_094418.jpg
    IMG_20180426_094418.jpg
    90.5 KB · Views: 0
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.

About this Thread

  • 7
    Replies
  • 632
    Views
  • 4
    Participants
Last reply from:
mang_mentong

Trending Topics

Online now

Members online
1,049
Guests online
920
Total visitors
1,969

Forum statistics

Threads
2,274,911
Posts
28,959,286
Members
1,233,484
Latest member
asawakoo03
Back
Top