Asked • 05/28/19

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/

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>
Report

10/07/20

1 Expert Answer

By:

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.