can we add <ul> inside <a> tag?
when im writing html code <ul> inside of <a> anchor tag, my dreamweaver editor showing bug in anchor tag. Shouldnt use <ul> inside <a> tag? Is there any rules writing/using tags ?
I am using Html 5. This is my code. http://jsfiddle.net/CfPnj/
More
1 Expert Answer
Ita Q. answered 10/07/20
Tutor
New to Wyzant
Native Indonesian, former teacher, Certified W3 HTML Developer
No. You cannot add <ul> inside <a> tag. Here is the correct structure on how to put link on your bullet lists. <ul><li><a href="https://www.wyzant.com">Wyzant</a></li></ul>
Thanks
Ita Quattrone
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Ita Q.
No. You cannot add <ul> inside <a> tag. <ul> is an opening tag for unordered list that should be followed with <li>. if you want to place a link on your unordered list or ordered list, you need to place the <a> tag after the opening of <li> tag. Here are the examples: <ul><li><a href="google.com">Google</a></li></ul> or <ol><li><a href="wyzant.com">Wyzant Ask An Expert</a></li></ol>10/07/20