# Css and div questions

**URL:** <https://forum.kirupa.com/t/css-and-div-questions/181663>\
**Category:** Uncategorized\
**Created:** [March 11, 2006, 5:16pm UTC](https://forum.kirupa.com/t/css-and-div-questions/181663 "2006-03-11T17:16:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fm47](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@fm47](https://forum.kirupa.com/u/fm47)\
**Post date:** [March 11, 2006, 5:16pm UTC](https://forum.kirupa.com/t/css-and-div-questions/181663/1 "2006-03-11T17:16:25Z")

</div>

I’ve read descriptions of \<div\> but don’t exactly understand it… coudl someone explain it to me?

With css, i simply have to link the htm page to it right?

\<link rel=“stylesheet” type=“text/css” href=“mystyle.css” /\>

so quick example of a table

here’s the CSS file

mystyle.css

```auto
 
body {
background-color: #efffff;
}
table.master {
width: 800px
background-color: #441100;
padding-left: 30px;
margin-top: 25px;
}

```

and then for my html

```auto

<html>
<title>my css style</title>
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>
<body>
<table class="master">
<tr>
<td>
<h1> This is a table. </h1>
</td>
</tr>
</body>
</html>

```

Would those examples above be legit if I just uploaded a css file and html file like that onto something like [geocities.com](http://geocities.com) (or any other site that hosts free websites)?
