/    Sign up×
Community /Pin to ProfileBookmark

help validating code

Can anyone please help me validate this peace of code?

<style type=”text/css” media=”screen”>
#header { background: url(“http://mike401.com/img/header2.jpg“) no-repeat bottom center; }
</style>

?

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelMay 23.2007 — [B]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">[/B]


<html><head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<meta http-equiv="Content-Style-Type" content="text/css" />

<meta http-equiv="Content-Script-Type" content="text/javascript" />

<title></title>

<style type="text/css">

* {border:0; padding:0; margin:0;}/* Set everything to "zero" */

body {min-height:100%; height:101%;

font:x-small Arial, Verdana, sans-serif;

voice-family: ""}"";voice-family:inherit;

font-size:small;/*for IE 5.5 */

} html>body {font-size:small; height:auto;}/* Assist IE6 & <, 100% height */

font-size: small; voice-family: ""}"";

voice-family: inherit; font-size: medium;} /* Assist IE rendering height, keyword-font sizes, etc. */

p {font-size: 90%; line-height:1.3em; margin:12px 0 2px 0;}

h1, h2, h3, h4, h5, h6 {font-family: 'times new roman', arial, verdana, serif; background-color:none;

font-style:normal; font-variant:normal; font-weight:normal; margin:14px 0 4px 10px;}

h1{font-size: 1.93em;}

h2{font-size: 1.72em;}

h3{font-size: 1.52em;}

h4{font-size: 1.42em;}

h5{font-size: 1.32em;}

h6{font-size: 1.21em;}

</style>

[B]<style type="text/css" media="screen">

#header { background: url('http://mike401.com/img/header2.jpg') no-repeat bottom center; width:682px; height:142px; margin:25px auto; border:4px double #ececec; padding:20px;}

</style>[/B]


<script type="text/javascript"><!--

// -->

</script>

<link rel="shortcut icon" href="favicon.ico"><!-- path to your favicon -->

</head>

<body>

[B]<div id="header">

<h1>This is my Header Section</h1>

<p>Say what I like: here.</p>

<p>Say what I like: It's my page.</p>

<p>Say what I like: It's my page. -but you're welcome to read it! :-)</p>

</div>[/B]


</body>

</html>[/QUOTE]
I have no idea what you mean by "validate my page". But here is onew way to use your page... ?
Copy linkTweet thisAlerts:
@CharlesMay 23.2007 — WebJoel, What's with the invalid mixing of HTML with XHTML?
Copy linkTweet thisAlerts:
@WebJoelMay 24.2007 — It has to do with my html-editor's default template that I call-up and populate with OP's code for 'fast-n-dirty replies'. It helps me maintain my 10-20 replies daily between work for & upon paying client's sites.

-It isn't right but you know what, -if coded even to my 'invalid standard', -the OP's page would at least function. ? Validating it upon the W3C-Validator site would yeild a whole new set of 'errors' (mostly to do with the levels of Accessibility, but notable, this 'invalid mixing of HTML and XHTML'

But you're correct and have mentioned this before.... it is an invalid mixing of HTML and XHTML coding. ?
×

Success!

Help @happyharry spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...