School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,477 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,747 people online right now. Registration is fast and FREE... Join Now!




Making sure I've setup the style sheet correctly

 

Making sure I've setup the style sheet correctly

tscott

17 Jun, 2009 - 03:41 PM
Post #1

D.I.C Regular
***

Joined: 30 Jan, 2009
Posts: 297



Thanked: 1 times
My Contributions
All I need to do is close the head now and the stylesheet is all linked to the HTML correct?

CODE

<!DOCTYPE html Public “-//W3C//DTD XHTML 1.0 Strict//EN”
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> // what does this line say just wondering
    <meta name="author" content="Jacqueline Zinn" />
    <meta name="keywords" content="Jacqueline Zinn design, interior design, Chicago Interior Design,  display" />
    <meta name="description" content="Jacqueline Zinn Design reflects a luxury lifestyle with clean lines, warm layers and timeless designs.." />
    
    <title>Jacqueline Zinn Design</title>
<link rel="stylesheet" href="jz.css" type="text/css" media="all">


This post has been edited by BetaWar: 17 Jun, 2009 - 03:44 PM

User is offlineProfile CardPM
+Quote Post


BetaWar

RE: Making Sure I've Setup The Style Sheet Correctly

17 Jun, 2009 - 03:45 PM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,729



Thanked: 269 times
Dream Kudos: 1400
My Contributions
Yes. Though, if you don't care about getting the HTML to validate you could leave the head open. I suggest closing it.
User is offlineProfile CardPM
+Quote Post

tscott

RE: Making Sure I've Setup The Style Sheet Correctly

17 Jun, 2009 - 03:50 PM
Post #3

D.I.C Regular
***

Joined: 30 Jan, 2009
Posts: 297



Thanked: 1 times
My Contributions
ok and what does the first meta tag mean I can't find it in my book?
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: Making Sure I've Setup The Style Sheet Correctly

17 Jun, 2009 - 03:55 PM
Post #4

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
It's just defining the content type of your page so browsers are meant to be able to interpret it easier, it also sets the character set that you're using. Browsers in reality don't particularly give a damn since they're used to crap code, but validators do.

Always note that this isn't the "real" content type nor character set that your page is being served in, since that's defined by the headers smile.gif

This post has been edited by MageUK: 17 Jun, 2009 - 03:56 PM
User is online!Profile CardPM
+Quote Post

BetaWar

RE: Making Sure I've Setup The Style Sheet Correctly

17 Jun, 2009 - 03:56 PM
Post #5

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,729



Thanked: 269 times
Dream Kudos: 1400
My Contributions
It tells the web browser what charset the document is using as well as what type of content is on the page (in this case plain text as well as HTML, which includes CSS and Javascript).
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 03:32AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month