Feedback on XHTML code

Code gets copied to the notepad or any HTML version software such as Dreamweaver or microsoft Visual Stuido.

Ok no problem. Will check this out.

Catty
 
and you can use notepad++ it will help you detect errors quickily. Just ensure the language is set to HTML

just saying that notepad++ won't catch the errors in AC's form code because technically - the codes are correct. Just gotta have a good eye to catch the wrong naming. :cool2:
 
just saying that notepad++ won't catch the errors in AC's form code because technically - the codes are correct. Just gotta have a good eye to catch the wrong naming. :cool2:

I know, but in example of other different coding, you will.

And by the way, Purplecatty, the books with HTML coding has many errors, and that is the part of the purpose for the students to learn! It is the same thing with C++ book Ihave. :D
 
I was initially using notepad but then I decided to use dreamweaver instead, it is a lot more user-friendly than notepad.
 
I was initially using notepad but then I decided to use dreamweaver instead, it is a lot more user-friendly than notepad.

I usually recommend rookies to begin with bare-minimum tools to learn basic language.... and then move onto programs like dreamweaver so that you fully understand the purpose of it. but that's just me..... :dunno:
 
Very true. This was the last question in Chapter 2 - I had done all of Chapter 1 and the first part of Chapter 2 in notepad. I kept forgetting to put an .html extension when saving each assignment (there were 5 for each Chapter) and it kept getting saved as a .txt file :lol: so I get to eliminate that if I'm using dreamweaver. And in dreamweaver I'm still working in the "Code" part, not the "design" part so it is still the same idea, just faster to type in and save. And, dreamweaver puts in extra stuff that wasn't in the book, so I've had to go back and take stuff out because I do want it to be like the book, since the teacher said so. But I get what you're saying! :)
 
I used to do HTML coding in Dreamweaver but now I use Microsoft Visual Studio -- I know it is complicated one but that's just me! :D
 
Guys, what is the default border color in CSS?

My book says "If you do not include border-color, the border will appear in the same color as the element."

Then, two sentences later, it gives an example:

p {border: solid;}

And then states that because the above rule sets the border-style to solid, the border-weight defaults to medium, and that the border-color will be the same color of the <p> element. And in the above example, no color was stated, so the border-color will be black.

The two seem inconsistent with each other. In the example, no color was stated, so it will be black. But the first paragraph says it will be the same color as the element. So, when I took my online test (we are allowed 2 tries), the first try I picked "color of the element" - wrong. Second try I picked "black" - wrong. The only other choices left are "color of the body text" or "none". I already took both tries so I can't go back and correct it for another point, but I'd still like to know.

Thanks! :)
 
the default color of border is just invisible like water lol. If you want to create a visible border - then you have to specify the color. The color has to be in HEX code. For example - you wanted a black border... then it should be -

p {border: 1px solid #000000; }

btw - it's best to specify the thickness of border... "1px" or "2px" or whatever amuses you :cool2: here's a link for example of HEX CODE of all colors. If there's a certain color you like from any website you came across, I use this program (Firefox add-on) called COLORZILLA. Very nifty, simple program.
 
yea, it's what Jiro said.

You should get the hang of hex code easily with a graphic designer background, AlleyCat.
You know in photoshop where you select the colors of the object?
Pic of it incase you've forgotten or something:
3467pte.jpg


Under the RGB section is a box that contains 6 digits, those digits is your hex code for the color.

This hexcode can be used in just about everything else in your html'ing: font color, background color, table colors, etc!

#000000 for black, #FFFFFF for white, #333333-#666666-#999999 for shades of gray is what I've came to memorize over the course of time.
 
Jiro and Naisho, thank you. So I should have chosen "none" then since it's transparent. Would be nice if my book would have just spit that out LOL. I know I'm supposed to be trying to figure this out for myself so the book isn't just giving it out, but when I'm reading about "same color as element" and then "black" it seemed to imply to me that it did have a default color, I just didn't realize that was "none" ! :)
 
Question: where is there scripting code in the code below? I just got graded today for Chapter 1's homework. I lost 2 out of 5 points on this one because my teacher said there was scripting code. Everything in the code below is exactly like my book with the exception of the !DOCTYPE line and the html xmlns lines. Those came from the w3 validation service and our teacher said if we got errors while validating, to correct it with the suggestions the w3 gives, and those 2 lines were suggested to me to put in, so I did. Is that the "scripting" she's referring to? If so, I still did what I was told to do. :(

<!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>Contact Information</title>
</head>
<body>
<h1>Olde World Shoe Repair</h1>
<h2>Contact Information</h2>

<p>123 Main Street<br />
Anywhere, USA 12345<br />
Phone: (565) 555-1212</p>
<p><a href="Ch01XHTMLEX04.html">Home</a></p>
</body>
</html>
 
Hmm, what kind of script is she referring to?
Looking at your coding, there isn't anything that needs a script unless she's referring to CSS formatting text, or are you starting Javascript implementation already?

Because the <script> tag commonly infers to triggering a javascript to run, usually in the following method:
Code:
<script type="text/javascript">
//<![CDATA[

  alert("<This is compatible with XHTML>");

//]]>
</script>
You can see more examples here:
JavaScript Examples
 
What I posted is exactly what I submitted to her. There wasn't supposed to be any scripting - she took points off because she thinks she "sees" scripting. There isn't any, is there? I think she messed up -- I wonder if she was looking at a different student's code, not mine.
 
What I posted is exactly what I submitted to her. There wasn't supposed to be any scripting - she took points off because she thinks she "sees" scripting. There isn't any, is there? I think she messed up -- I wonder if she was looking at a different student's code, not mine.

did you ask her for clarification/answer?
 
I did. She didn't answer that. I sent her a msg with 2 questions - one about the post above, and another about something in Chapter 2, and she answered that one, but she completely ignored the question about the scripting... *sigh*
 
Back
Top