Home
Q&A
Having problems with th tag in a table.

Having problems with th tag in a table.

0
votes

C H A L L E N G E Can you find all of the mistakes? (at least 14)

I am trying to use the th tag in a table. Anybody know what I'm doing wrong. Before I posted the tag worked fine but all the th tags have been removed during the post. Thank you for investigating this issue. -- bandit --

1863 views
updated May 20, 2011
edited by bandit51jd
posted by bandit51jd

5 Answers

2
votes

I think I´ve got the table correctly now.

using the Daring Mareball Markdown format:

My attempt English translations Correct answers Reasons for corrections
1 Busco más que dos libros. I'm looking for more than two books. Busco más de dos libros. buscar - to look for; use de rather than que when followed by a number
2 Quiero otro libro. I want another book. Quiero otro libro. OK
3 Mi hermano mayor baila bien. My older brother dances well. Mi hermano mayor baila bien. Ok
4 Mi hermana menor es doctora. My younger sister is a doctor. Mi hermana menor es doctora. OK
5 Ella va a moverse este fin de semana. She is going to move this weekend. Ella va a mudarse este fin de semana. use mudarse rather than moverse when moving/changing addresses
6 ¿Quién puedo comer con? Who can I eat with? ¿Con quién puedo comer? Spanish doesn't allow a preposition at the end of a sentence
7 Pregunté por una cerveza. I asked for a beer. Pedí una cerveza. preguntar - to ask for knowledge; pedir (i) is asking for something, in a restaurant or bar
8 No me darse cuenta de. I didn't realize. No me di cuenta. realizar is to carry out, execute; darse cuenta is when you realize something
9 ¿Te recuerdas a Juan? Do you remember John? ¿Recuerdas a Juan? recordar doesn't have the reflexive pronoun; acordarse does
10 Es vestido en rojo. He is dressed in red. Está vestido de rojo. estar for dressed and de rather than en when saying dressed in + a color
11 Me gustan los cuentos de aventura. > I like adventure stories. Me gustan los cuentos de aventura. OK
updated May 20, 2011
edited by bandit51jd
posted by bandit51jd
This is pretty neat! Now is I can figure it out and not just copy and paste! :) - bandit51jd, May 20, 2011
I added a link to a Markdown reference in the SD reference library. - pesta, May 20, 2011
2
votes

I updated your post with row numbers in correct position.

The < th > tag gets swallowed up, even if the end tag < /th > is used correctly.

There may be some escape codes needed, but I haven't found them yet.

Anyway, your post is formatted at bit better, but somehow lost the border setting!

Here's my try at a few rows, using the Markdown format:

My attempt English translations Correct answers Reasons for corrections
1 Busco más que dos libros. I'm looking for more than two books. Busco más de dos libros. buscar - to look for; use de rather than que when followed by a number
2 Quiero otro libro. I want another book. Quiero otro libro. OK
3 Mi hermano mayor baila bien. My older brother dances well. Mi hermano mayor baila bien.
updated May 20, 2011
edited by pesta
posted by pesta
Pesta, thanks I'm going there now and will see what it looks like and will try some of the coding Q used. Or I just may leave it alone for now. - bandit51jd, May 20, 2011
I really like KiwiGirl's exercise and if she does another one, I'd like my table to work! Muchas gracias! - bandit51jd, May 20, 2011
Oh, my this really is "daring"! I'll see if I can work with it! Otro vez, muchas gracias! - bandit51jd, May 20, 2011
The "Daring Fireball" markdown is only part of what we use. Tables seem to come from some other markdown library. Oh, well, this works. - pesta, May 20, 2011
Thanks for putting in the hyperlink to Markdown format! - bandit51jd, May 20, 2011
2
votes

Just to mention it, you can link directly to your reply, rather than the thread if you use the link code given at your reply (a href) rather than the link icon given in the editor (http...).

links to question

links to your specific reply

C H A L L E N G E Can you find all of the mistakes? (at least 14)

I think the answer is that they keep updating the text editor and is keeps changing which html/xhtml tags that it will accept.

I copied this table directly from the w3 schools example on table headers. Note that this editor does not bold the table headers as was intended or as other editors do. Comment for table headers at w3 schools:

All major browsers will display the text in the element as bold and centered.

So maybe it is browser dependent and not this editor's fault.

copied table

Header 1 Header 2
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2

hmm. Now it is not recognizing the table border. It did earlier. Fickle editor.

updated May 20, 2011
edited by 0074b507
posted by 0074b507
1
vote

Q:

1- Thanks for the information about the linking to a question vs. the response to the question; which is really a good idea. I've forgotten alot of the coding and will have to review this some more. Edit: Where did the numbers #a440806 come from? I don't remember, though I think I remember they do the linking.

2- Yes, I agree it probably is in the browser. Right now I'm using IE 9 because I'm dealing with plug-in issues. I'd rather be in Google Chrome fully or IE 9 fully but some sites don't have "Chrome" yet, and this IE 9 is full of problems. It’s a pain to have to go back and forth!

3- I’ve copied your table and will see if I can use it like a template.

Muchas gracias for your help!

updated May 20, 2011
edited by bandit51jd
posted by bandit51jd
The #a440806 is a local bookmark within the page being loaded in the main URL address. - pesta, May 20, 2011