|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#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="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
|
|||
|
|||
|
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
|
|||
|
|||
|
thanks
|
|
#4
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|