Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,597 members, 7,809,168 topics. Date: Friday, 26 April 2024 at 02:36 AM |
Nairaland Forum / Science/Technology / Programming / Error With XHTML Markup (3723 Views)
How Do I Fix "Player.exe Has Stopped Working" Error Message. / Invalid Security Token Error 403 Blogger Template / Xml: Extensible Markup Language (2) (3) (4)
Error With XHTML Markup by jt2010: 1:47pm On May 04, 2012 |
Hi Guys, I need your help with this assignment, thus i have answer them the best way i know after reading from my text book but i still feel i need the help of the expert on programming in the house. QUESTION IS: Why is the following markup invalid? <p>Here is some text ... <br> And some more text...</p> MY ANSWER is: because the opening br tag must be closed, either by adding a closing br tag (</br> or by inserting a forward slash before the second angle bracket in the existing tag (<br />. Am i correct!!! Plz am not a programmer, just taking a compulsory course in programming the internet. |
Re: Error With XHTML Markup by delomos(m): 3:01pm On May 04, 2012 |
Issue 1: "<p></p>" is a block level element so it is not semantic to have a <br/> inside it, sine <br/> is a block-level element too (though inline elements like <span>, <strong>, etc are fine). Issue 2: under XHTML <br> and </br> are invalid, the only valid markup is <br/> |
Re: Error With XHTML Markup by jt2010: 3:36pm On May 04, 2012 |
Thanks Demola, Can you try to explain a little be clearly |
Re: Error With XHTML Markup by delomos(m): 5:53pm On May 04, 2012 |
I illustrated the point here (see the comments): http://jsbin.com/uwupaj/edit#html,live |
Re: Error With XHTML Markup by jt2010: 12:13pm On May 07, 2012 |
Thanks Men, I really appreciate. Did you mind if i have your e-mail address. Thanks please let me bother you again with this problem. I have attached a xhtml markup i generate but it keep saying error. |
Re: Error With XHTML Markup by delomos(m): 4:42pm On May 07, 2012 |
jt2010: Thanks Men, Please put the code on http://jsbin.com/#html,live or https://gist.github.com/ So every one else can see it, and it's easier to see what the issue it that way. and you can always ping me at http://twitter.com/delomos |
Re: Error With XHTML Markup by jt2010: 5:23pm On May 07, 2012 |
Dele, Many thanks, I have upload the file now to : http://jsbin.com/oyocey/edit#html https://gist.github.com/2628828 |
Re: Error With XHTML Markup by delomos(m): 6:04pm On May 07, 2012 |
jt2010: Dele, I made some notes on the jsbin, you can pick this up from there: http://jsbin.com/oyocey/3/edit, also to get a better understanding of the notes I made in there, read this: http://www.webdesignfromscratch.com/html-css/introduction-to-html/ |
Re: Error With XHTML Markup by jt2010: 6:58pm On May 07, 2012 |
Many thanks, you are so helpful. I have done all your taught me and they have all be validated. Many thanks. |
Re: Error With XHTML Markup by delomos(m): 7:51pm On May 07, 2012 |
jt2010: Many thanks, you are so help. I have done all your taught me and it validates all.You welcome pal. |
Re: Error With XHTML Markup by jt2010: 5:59pm On May 09, 2012 |
Dele, Please i need your help again. How can i Create the xhtml markup that produces a table. Using <em> and <strong> tags as necessary with a camel image as see from the attached image from this post. Here is the assignment: Create the xhtml markup that produces the table shown below. Use <em> and <strong> tags as necessary. The camel.gif image can be downloaded from http://www.deitel.com/books/iw3htp4/ 2. Write a CSS rule that makes all gtext 1.5 times larger than the base font of the system and colors the text red.
|
Re: Error With XHTML Markup by delomos(m): 8:41pm On May 09, 2012 |
jt2010: Dele,Post what you have on jsbin and I'd see what's off, read about tables here: http://www.w3schools.com/html/html_tables.asp |
Re: Error With XHTML Markup by jt2010: 12:28pm On May 10, 2012 |
Thanks, I have done the table but i do have some error when i try to validate it. pleas help. Here is the markup file. https://gist.github.com/2652521 On question 3: 3. Write a CSS rule that makes all gtext 1.5 times larger than the base font of the system and colors the text red. I've got this so far: <html> <head> <style type="text/css"> p {font-size: 150%} p {color:red} </style> </head> <body> <p>This is the first paragraph</p> <p>This is the second paragraph</p> </body> </html> Many thanks. |
Re: Error With XHTML Markup by delomos(m): 2:07pm On May 10, 2012 |
jt2010: Thanks, here:
to HTML "+2" dosn't mean anything, try doing 2px, 2em, or 2pt, depending on what you're trying to archive. This type of font is also not really used anymore, you can try this: this is much shorter and current. try fixing it and seeing the output here:http://jsbin.com/amibin/edit#html,live |
Re: Error With XHTML Markup by jt2010: 2:53pm On May 10, 2012 |
Bros, I have errors with the bold part when i try to validate the markup. <?xml version="1.0" encoding="windows-1252"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- Created on: 5/7/2012 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>Exercise 4.4 sample</title> </head> <body> <table summary="" border="1"> <tr> <td> <h1>Objectives</h1> <ul> <li>To be able to create tables with rows and columns of Data</li> <li>To be able to control display and formatting of tables</li> <li>To be able to create and use forms</li> </ul> <p><i>Yea, from the table of my memory I'll wipe away all trivial fond <br/> record.</i><br/> William Shakespeare</p></td> <td><img src="../Week 2/ch04XHTML/fig04_11/camel.gif" width="410" height="350" alt="" border="0" />[font=Lucida Sans Unicode][/font]</td> </tr> </table> </body> </html> |
Re: Error With XHTML Markup by delomos(m): 3:52pm On May 10, 2012 |
see my preceding post and maybe read this: http://www.w3schools.com/tags/tag_font.asp |
Re: Error With XHTML Markup by jt2010: 4:00pm On May 10, 2012 |
Thanks, I have corrected it now but i still have issues with the section of the image part. See Markup. <?xml version="1.0" encoding="windows-1252"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- Created on: 5/7/2012 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>Exercise 4.4 sample</title> </head> <body> <table summary="" border="1"> <tr> <td> <h1>Objectives</h1> <ul> <li>To be able to create tables with rows and columns of Data</li> <li>To be able to control display and formatting of tables</li> <li>To be able to create and use forms</li> </ul> <p><i>Yea, from the table of my memory I'll wipe away all trivial fond <br/> record.</i><br/> William Shakespeare</p></td> <td><img src="../Week 2/ch04XHTML/fig04_11/camel.gif" width="410" height="350" alt="" border="0" /></td> </tr> </table> </body> </html> |
Re: Error With XHTML Markup by delomos(m): 5:55pm On May 10, 2012 |
<td><img src="../Week 2/ch04XHTML/fig04_11/camel.gif" width="410[b]px[/b]" height="350[b]px[/b]" alt="" border="0" /></td> |
Re: Error With XHTML Markup by jt2010: 9:36am On May 11, 2012 |
Bros, Thanks, it has finally be validated now but i still have issue with this other question. Can you kindly help with this. Write a CSS rule that makes all gtext 1.5 times larger than the base font of the system and colors the text red. |
Re: Error With XHTML Markup by delomos(m): 7:59pm On May 11, 2012 |
jt2010: Bros, AS always, give it a shot and paste it on www.jsbin.com and I'd let you know how it goes from there. |
Re: Error With XHTML Markup by jt2010: 9:15am On May 14, 2012 |
Bros, I have uploaded it here. https://gist.github.com/2692648 Seriously, i have no idea of what to do, please help |
Re: Error With XHTML Markup by delomos(m): 1:47pm On May 14, 2012 |
jt2010: Bros, Paste the full mark-up (the whole thing) on jsbin.com. |
Re: Error With XHTML Markup by jt2010: 12:48pm On May 15, 2012 |
Hi, I also have a complex table to do, i have done it but got error during validation of the markup. I have upload the markup here for you to help correct. https://gist.github.com/2701127 Again for the markup. https://gist.github.com/2692648 I seriously do not have an idea of what to do, please help explain better. |
Re: Error With XHTML Markup by delomos(m): 2:01pm On May 15, 2012 |
jt2010: Hi, For a valid table, you need the following elements (with thier respective opening and closing tags HTML fashion): <table> <-- this indicates the start of the table (then later closed with </table> <thead> <-- this indicates that the section will be in the table's head <tbody> <-- the body of the table <tr> <-- A row in the table <td> (or <th> if it's in a <thead> <-- this indicates a table data within a table row (tr), so to put it together you have something like:
see another variation on the table thing here, play with it, see the results and the idea will sink in, then you'd see the issues with your own table : http://jsbin.com/ovuqix/2/edit |
Re: Error With XHTML Markup by jt2010: 4:04pm On May 15, 2012 |
Thanks, I have done all i need to do now, thus it validate but i guess am not correct with the section of the table that read" This is the table foot." See the full markup and advise plz. https://gist.github.com/2702452 Also, the last section, i really need you to explain it to me to enable me understand what am to do. Write a CSS rule that makes all gtext 1.5 times larger than the base font of the system and colors the text red. |
Re: Error With XHTML Markup by delomos(m): 5:11pm On May 15, 2012 |
use <tfoot> <tr> <td></td> </tr> </tfoot> for the footer of the table it's optional, but the syntax is often the same. jt2010:Paste the HTML you're referring to on http://jsbin.com/#html,live |
Re: Error With XHTML Markup by jt2010: 5:33pm On May 15, 2012 |
Bros, Just do a sample with this text. Create the xhtml markup that produces the table shown below. Use <em> and <strong> tags as necessary. The camel.gif image can be downloaded from |
Re: Error With XHTML Markup by jt2010: 2:30pm On May 16, 2012 |
Bros, Many thanks, I guess i understand the question now and i have give it a try and here is my markup on it. <?xml version="1.0" encoding="windows-1252"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- Created on: 5/16/2012 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>CSS1</title> <style type="text/css"> .css1 { font-size: 1.5em; color: red; background: white; } </style> </head> <body> <p class="css1"> write a css rule that makes all text 1.5 times larger than the base font of the systemand colors the text red... </p> </body> </html> |
Re: Error With XHTML Markup by delomos(m): 2:57pm On May 16, 2012 |
jt2010: Bros,^^ There you go |
Re: Error With XHTML Markup by jt2010: 4:49pm On May 16, 2012 |
Bros, Sorry to bother you again with this request. Did you have a template of xhtml that can be use to develop a website. I just need some to look and gain concepts. I need to work on a class website project. |
Re: Error With XHTML Markup by delomos(m): 6:01pm On May 16, 2012 |
jt2010: Bros,A Google search gave this, which looks good: http://designmodo.com/xhtml-css-templates/ . And I'm sure googling on your part can yield more. |
Re: Error With XHTML Markup by jt2010: 5:33pm On May 29, 2012 |
Bros, Please i have come again with my problem. I need help or direction on what to do concerning this answer. You have a server-side script that cannot handle any ampersands (&wink in the form data. Write a function that converts all ampersands in a form field to “ and “ when the field loses focus (onblur). This is what i have done so far. <html> <head> script type="text/javascript"> Function TextBox1_OnBlur() document.all("TextBox1"wink.value = Replace(document.all("TextBox1"wink.value,"&","and"wink End Function </script> </head> <body> <input type="Text" name="TextBox1"> </body> </html> |
Contest[closed] : Program A Function to find if a phrase. is in a string / It's easy, learn a new tech skill. / What U Need To Know Before Learn A Programming Language
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 75 |