Click to See Complete Forum and Search --> : Xhtml Code Help Please
gwindel
03-03-2005, 06:29 PM
I am looking for help doing a project. Here are the instructions for the project. Can someone please help me with the proper coding?
Create a single .html
document that includes all of the following
(the page can be on any topic you choose):
1) The default XHTML template code
2) A style element used to set the background
color to navy and the text color to white using hexadecimal color code
3) A comment element that includes the name assigned to the hexadecimal color code
4) A horizontal rule
5) A blockquote
6) At least two paragraphs, one of which includes the break tag
7) At least three different levels of headings (e.g., h1, h2, etc.)
8) The use of the span element set to change one word in your document to yellow text
9) The use of the ampersand special symbol
If you can please help by posting the correct code for this I would really appreciate it so I can check my code.
Thank You!
evilandie
03-03-2005, 07:01 PM
What HTML editor are you using? I ask because you can do this either with code or with a visible editor like Dreamweaver or Frontpage...
gwindel
03-03-2005, 07:09 PM
I am not using a web editor I have to do it in a word pad document from scratch.
evilandie
03-03-2005, 07:31 PM
UGH! Can I make a suggestion? Dont use WordPad because it cannot handle the code and it will not be able to format right.
If you want to use a regular editor, use EditPad or EditPad Pro.
In the meantime, the code you would need is:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #003366;
}
-->
</style>
<body>
<h1> </h1>
<h2> </h2>
<h3> </h3>
<p> </p>
<p> </p>
<hr>
<p> </p>
<blockquote>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</blockquote>
<span></span> (youll have to fill this in since I dont know what words you want to change color)
</body>
</html>
Also, you should be able to use an ampersand at anytime.
Hope that helps.
gwindel
03-03-2005, 08:27 PM
You are so great thank you so much for the help. And thank you for the sugestions.
evilandie
03-03-2005, 08:30 PM
Why thank you! and you're welcome too! ;)
Robert Wellock
03-04-2005, 05:56 AM
<?xml version="1.0" encoding="utf-8"?>
<!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">
<head>
<meta http-equiv="Content-Type" content=
"text/html; UTF-8" />
<title>
Untitled Document
</title>
<style type="text/css">
<!--
body {
background-color: #000080; /* Navy */
color: #ffffff; /* White */}
span {color: yellow;}
-->
</style>
</head>
<body>
<h1>
h1
</h1>
<blockquote>
<p>
Soft you now, the fair <span>Ophelia</span>. Nymph, in
thy orisons, be all my sins remembered. Fair twilight,
and foxy swarms of ants, did slyly open the jars of jam.
</p>
</blockquote>
<hr /><h2>
h2
</h2>
<p>
One
</p>
<h3>
h3
</h3>
<p>
One<br />
Ampersand: &amp;
</p>
</body>
</html>
Really, if this is for an assignment in XHTML you should not be asking for the complete answer.
gwindel
03-04-2005, 12:34 PM
Thank You as well Robert
ffurnai
03-04-2005, 12:47 PM
was this a school assignment??!!??
gwindel
03-04-2005, 11:22 PM
Thanks for your help all. With your help I was able to fix the problem portions of my code.