HTML down, CSS help, ahhhh


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
HTML down, CSS help, ahhhh

I am having some problems. I have been able to learn HTML, but when I try and encode CSS, nothing happens, what is the major issue here.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>MY CSS</title>
    <style type="text/css">
    <!--
    <body {
        font-family: verdana, arial, sans-serif;
    }
    h1 {
      font-size: 120%
    }
    a {
      text-decoration: none;
    }
    p {
      font-size: 90%
    }
    -->
    </style>
    </head>
    <body>
      <h1>Page Uno</h1>
      <p>writing for this sample</p>
<a href="https://www.unix.com">link</a>.</p>
    </body>
</html>


Last edited by Scott; 12-18-2011 at 09:42 AM.. Reason: Code tags, please...
# 2  
Quote:
Originally Posted by N-Training
I am having some problems.
this works but don't you want to put your css into an external stylesheet?
.html for the structure - .css for the looks. I promise it will save you hours one day Smilie
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>MY CSS</title>
</head>

<body>
<h1 style="font-size: 120%">Page Uno</h1>
<p style="font-family: verdana, arial, sans-serif; font-size: 90%">writing for this sample</p>
<a style="text-decoration: none" href="https://www.unix.com">link</a>
</body>
</html>

# 3  
thanks

Smilie see what to do now
# 4  
HTML down, CSS help, ahhhh

Hello,
Web Development are very important for design any website if you want design to any websites then you must learn HTML,CSS and scripting language JavaScript.CSS plaw a very important role for designing any websites to give look and feel.
# 5  
ColdFusion is a good thing to learn too, if you're doing a large site it can save a very very long time in repeating code. Also makes pages a lot smaller and quicker Smilie
# 6  
You should not be using comment tags in the css styling:
Code:
<!--   -->

These should both be left out.

The error you are looking for is here:
Code:
<body

should be:
Code:
body

# 7  
it would appear you care cutting out code from somewhere and pasting it in. Please have a look here
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

5 More Discussions You Might Find Interesting

1. Web Development

Web development learning thread(Javascript, HTML, CSS, angular, vue.js).

Hello All, After getting inspired from Neo, I have started a bit of JS learning these days. Whenever I learn something I will try to post it here(as of now my learning is NOT exactly bookish where I am going chapter by chapter etc, it could be more like small-small project vice kind of), I... (25 Replies)
Discussion started by: RavinderSingh13
25 Replies

2. Web Development

Optimizing JS and CSS

Yes. Got few suggestions. - How about minifying resources - mod_expires - Service workers setup https://www.unix.com/attachments/web-programming/7709d1550557731-sneak-preview-new-unix-com-usercp-vuejs-demo-screenshot-png (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

3. Web Development

CSS frameworks

I have been reading up on CSS frameworks, to see if it could be useful for an intranet that I am helping to build, but the true purpose does not become clear to me. What circumstances would the deployment of a CSS framework be useful in? What does a CSS framework do that a CMS template cannot do? (1 Reply)
Discussion started by: figaro
1 Replies

4. Web Development

On Css

<html> <head> <style> div.box {width: 300px; height: 200px; padding: 30px; font: 46 pt times new roman;} </style> </head> <body> <div class="box" style=" filter": progid:DXImagetransform.Microsoft.Alpha (Opacity=100, FinishOpacity=0, Style=1, StartX=0, FinishX=0,... (0 Replies)
Discussion started by: N-Training
0 Replies

5. UNIX for Dummies Questions & Answers

Safe_mode !!! Ahhhh

Hi, Can anyone please please, help me disable LOCAL value safe_mode. In the php.ini safe_mode = Off When I launch, a phpinfo page, LOCAL value remains on and MASTER remains off. I have searched elsewhere and have tried to add a line on code in the httpd.conf , restart Apache sitll no... (5 Replies)
Discussion started by: peachesboy
5 Replies

Featured Tech Videos