I think thats why:
The
<p>
tag can only contain inline elements. The header tags are block-level elements, and cannot go inside<p>
tags even when you style them to display inline.
More Related Contents:
- Vertically center element on HTML page with some content on top (Bootstrap)
- CSS Button styling – Need some help -html css RADIO BUTTON LINK
- Make body have 100% of the browser height
- How to create a circle with links on border side
- Why the content is not covered by the background of an overlapping element?
- How to animate underline from left to right?
- Placing border inside of div and not on its edge
- CSS background image to fit width, height should auto-scale in proportion
- How to wrap text around an image using HTML/CSS
- Fullscreen responsive background image in CSS
- Bootstrap 4 Cards of same height in columns
- Adding external CSS in an HTML file
- Prevent flex items from stretching
- Hexagon shape with a border/outline
- CSS select elements with partial id
- Mosaic of images HTML/CSS
- height: 100% for inside with display: table-cell
- How to add the text “ON” and “OFF” to toggle button
- How to make resizeable?
- CSS – Border where only half of a border is visible
- content url is not working in Firefox [closed]
- How do I style the HTML form validation error messages with CSS?
- How can I target a specific column or row in a CSS grid layout?
- Adding style to file upload button in css
- What are the default values for justify-content & align content?
- Font Awesome & Unicode
- How to make one span both columns in a two column table?
- What is the difference between phrasing content and flow content?
- CSS crop string in the middle
- What does “semantically correct” mean?