Go Back   The UNIX and Linux Forums > Special Forums > Web Programming


Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-18-2011
Registered User
 
Join Date: Nov 2010
Location: Georgia, USA
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
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="http://www.unix.com">link</a>.</p>
    </body>
</html>


Last edited by Scott; 12-18-2011 at 08:42 AM.. Reason: Code tags, please...
Sponsored Links
    #2  
Old 12-18-2011
Registered User
 
Join Date: Dec 2011
Location: Puttaparthi, India until August 2012
Posts: 17
Thanks: 5
Thanked 1 Time in 1 Post
Quote:
Originally Posted by N-Training View Post
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

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="http://www.unix.com">link</a>
</body>
</html>

Sponsored Links
    #3  
Old 12-18-2011
Registered User
 
Join Date: Nov 2010
Location: Georgia, USA
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
thanks

see what to do now
    #4  
Old 01-16-2012
Registered User
 
Join Date: Jan 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
HTML down, CSS help, ahhhh

Hello,
web programming 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.
Sponsored Links
    #5  
Old 03-16-2012
Registered User
 
Join Date: Mar 2012
Location: UK
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #6  
Old 06-26-2012
Registered User
 
Join Date: Jan 2007
Posts: 752
Thanks: 83
Thanked 16 Times in 15 Posts
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

Sponsored Links
    #7  
Old 10-11-2012
Registered User
 
Join Date: Oct 2012
Location: Nashville, TN
Posts: 45
Thanks: 6
Thanked 0 Times in 0 Posts
it would appear you care cutting out code from somewhere and pasting it in. Please have a look here
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Send HTML body and HTML attachment using MUTT command vickramshetty Red Hat 2 05-11-2010 10:33 AM
shellinabox/html help to insert a keypress with an html button syadnom UNIX for Advanced & Expert Users 0 12-11-2009 10:31 AM
Sendmail with html attachment and html body sol_nov Shell Programming and Scripting 1 10-08-2009 08:39 PM
How do I extract text only from html file without HTML tag los111 UNIX for Dummies Questions & Answers 4 11-28-2007 03:40 AM
Safe_mode !!! Ahhhh peachesboy UNIX for Dummies Questions & Answers 5 04-21-2006 10:59 PM



All times are GMT -4. The time now is 06:03 AM.