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:

CSS lecture slide headed "Pseudo Classes"

2 of 419 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Wed 3rd Jun 2020, 12:18am
Actions: 
        Login-to-reply

 

Hi Tim
I tried rendering the html code provided in this slide (below). It seems to work fine 
both with and without the xmlns attribute. Can you explain what that attribute is 
for?
Thanks.

<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title> Checkboxes </title>

        <style type = "text/css">
            input:hover {color: red;}
            input:focus {color: green;}
        </style>
    </head>

    <body>
        <form action = "">
            <p> Your name: <input type = "text" /> </p>
        </form>
    </body>
</html>

CSS lecture slide headed "Pseudo Classes"

photo
From: Timothy F.
Date: Thu 4th Jun 2020, 12:02pm
Actions: 
        Login-to-reply

 

ANONYMOUS wrote:

> Hi Tim
> I tried rendering the html code provided in this slide (below). It seems to work fine 
> both with and without the xmlns attribute. Can you explain what that attribute is 
> for?
> Thanks.
> 
> <html xmlns = "http://www.w3.org/1999/xhtml">
>     <head>
>         <title> Checkboxes </title>
> 
>         <style type = "text/css">
>             input:hover {color: red;}
>             input:focus {color: green;}
>         </style>
>     </head>
> 
>     <body>
>         <form action = "">
>             <p> Your name: <input type = "text" /> </p>
>         </form>
>     </body>
> </html>

Hi,

That snippet of code was designed to be xhtml compliant (XHTML ran parallel to HTML4, 
and was superseded by HTML5 as I'm sure everyone recalls from project 1).

Prior to 2017 CITS3403 had an expectation that code was xhtml comliant. HTML5 is much 
nicer.
This Page


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