Why does HTML5 recommend putting the code element inside pre

0 votes
The HTML5 documentation recommends putting the code element inside the "pre" element but I don't understand how this is better or more semantic than just using the code element and CSS

Is there a specific reason the "pre" is recommended over a CSS solution?
Jul 4, 2022 in HTML by Tejashwini
• 3,820 points
189 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In HTML

0 votes
0 answers

how to create a HTML5 video element without it being shown in the page?

how is it possible to dynamically create ...READ MORE

Jul 5, 2022 in HTML by Tejashwini
• 3,820 points
265 views
0 votes
0 answers

Which all are the tags allowed inside the <li> tag ?

I have been searching for the list ...READ MORE

Jun 8, 2022 in HTML by Ashwini
• 5,430 points
206 views
0 votes
0 answers

What is the color code for transparent in HTML, is there any code as such?

I need to show a nav bar ...READ MORE

Jul 4, 2022 in HTML by Tejashwini
• 3,820 points
197 views
0 votes
0 answers

how to display an image inside SVG circle in html5?

is there a way to display an ...READ MORE

Jul 4, 2022 in HTML by Tejashwini
• 3,820 points
834 views
0 votes
0 answers

What is the meaning of polyfills in HTML5?

What does HTML5's use of polyfills mean? ...READ MORE

Jul 21, 2022 in HTML by Ashwini
• 5,430 points
258 views
0 votes
0 answers

How can I set max-length in an HTML5 "input type=number" element?

The max length property of the input ...READ MORE

Jul 21, 2022 in HTML by Ashwini
• 5,430 points
1,345 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
9,630 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
2,553 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,360 points
686 views
0 votes
1 answer

What is the difference between span and div?

The div should be used to wrap sections of ...READ MORE

answered Jan 16, 2020 in Web Development by Niraj

edited Jan 21, 2020 by Niroj 3,191 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP