Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3403


This forum is provided to promote discussion amongst students enrolled in Agile Web Development (CITS3403).
 
Options:
RSS cloud
Jump to:

Question about <xmp>

3 of 419 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Sun 29th Mar 2020, 12:36am
Actions: 
        Login-to-reply

 

Hi
I try to display my code by using <xmp>, it works fine but can not pass the validation 
, says 'Element xmp not allowed as child of element div in this context. (Suppressing 
further errors from this subtree.)'. I checked all the closing tag but still can not 
fix it. so does this mean I actually can not use xmp in div element?
thanks

Question about <xmp>

photo
From: Haolin W.
Date: Sun 29th Mar 2020, 11:49am
Actions: 
        Login-to-reply

 

The <xmp> tag is deprecated I believe. It was replaced by <pre> and <code> which are still 
valid in HTML. Use those in place of <xmp>.

Question about <xmp>

photo
From: ANONYMOUS  O.P.
Date: Sun 29th Mar 2020, 12:36pm
Actions: 
        Login-to-reply

 

"Haolin Wu" <21*0*1*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> The <xmp> tag is deprecated I believe. It was replaced by <pre> and <code> which are still 
> valid in HTML. Use those in place of <xmp>.
Thanks. fixed by a more easier modified element <textarea>. 
This Page


Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020