a
(anchor) element must not contain a target
attribute unless the target
attribute value is either _self, _top, or _parent.
Question | Does this anchor open a new window without warning? |
---|---|
PASS | There is a warning to user that anchor opens a new window. |
FAIL | User is not given warning that anchor opens a new window. |
a
(anchor) element that contains a target
attribute.a
(anchor) elements that contain a target
attribute value of _self, _top, or _parent.a
(anchor) element opens a new window.a
(anchor) elements opens a new window.a
(anchor) element opens a new window.a
(anchor) element has target of "_self".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #18 - Negative</title> </head> <body> <a href="newwindow.html" target="_self">same window</a> </body> </html>
a
(anchor) element has target of "_new".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #18 - Positive</title> </head> <body> <a href="newwindow.html" target="_new">new window</a> </body> </html>