June 2, 201313 yr Could someone explain what's going on here? How come this validates <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> </head> <body> <dl> <dt>term</dt> <dt>term</dt><dd>definition</dd> </dl> </body> </html> and this doesn't? <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> </head> <body> <dl> <dt>term</dt><dd>definition</dd> <dt>term</dt> </dl> </body> </html> Thanks so much for your help!!!
June 2, 201313 yr A <dt> term must be followed by a <dd> Description but a description can cover more than one term <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> </head> <body> <dl> <dt>album1</dt> <dt>album2</dt><dd>selction of music</dd><!--this descition covers both terms--> </dl> </body> </html> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> </head> <body> <dl> <dt>album1</dt><dd>my music</dd> <dt>album2</dt><!--no description for this term--> </dl> </body> </html> hth
Create an account or sign in to comment