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 in HTML by Tejashwini
• 1,660 points
11 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 in HTML by Tejashwini
• 1,660 points
10 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 in HTML by Ashwini
• 1,160 points
23 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 in HTML by Tejashwini
• 1,660 points
5 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 in HTML by Tejashwini
• 1,660 points
8 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 in HTML by Ashwini
• 1,160 points
9 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 in HTML by Ashwini
• 1,160 points
15 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
4,697 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
1,695 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,350 points
277 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 2,303 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP