Skip to content

Replace <p> inside <a> with <span> and <small> for valid HTML #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

gargi11garad
Copy link
Contributor

@gargi11garad gargi11garad commented Jun 19, 2025

HTML does not allow a <p> tag directly inside an <a> tag. This change replaces <p> with <span> and <small> elements to maintain semantic structure and ensure valid, accessible HTML.

Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct to me - it's generally not recommended to put block-level elements inside <a> tags so I think this is a correct improvement. This page needs some other work on the style side but I think this PR is still an improvement so I'll merge!

Thanks for the contribution!

@choldgraf choldgraf merged commit cf5ccf7 into jupyter:main Jun 19, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants