登录 | 注册 | FAQ
Anonymous

StyleSheet not linking

+ 发表回复

4 篇帖子 分页: 1 / 1


StyleSheet not linking

miniwinwins » 周二 8月 19, 2014 2:15 pm

Hi, I'm trying to link my css stylesheet to my html document but it's not working. I've tested it a number of ways and still I can't seem to figure out the problem.

<!DOCTYPE html>
<html>

<head>
<link rel=“stylesheet” type=“text/css” href=“index.css” />
<title>My Website</title>
</head>

If someone could point me in the right direction that would be great!
头像

miniwinwins

  • 帖子: 1
  • 注册: 周二 8月 19, 2014 2:09 pm

Re: StyleSheet not linking

Chikwado » 周三 8月 20, 2014 12:07 pm

Can you figure out that css properties and HTML code? Because, External style if not targeted to HTML code very well It may never work.
头像

Chikwado

  • 帖子: 87
  • 注册: 周一 7月 29, 2013 11:36 pm
  • 地址: Nigeria

Re: StyleSheet not linking

nanoverso » 周三 8月 20, 2014 11:09 pm

Verify if the stylesheet file is on the same directory (folder) of the html file.
头像

nanoverso

  • 帖子: 253
  • 注册: 周六 5月 10, 2014 12:08 am
  • 地址: Brazil
--
Free VST Plugins Download.

Re: StyleSheet not linking

XainPro » 周一 9月 22, 2014 7:32 am

try this code
代码: 全选
<!DOCTYPE html>
<html>

<head>
<link rel=“stylesheet” type=“text/css” href=“index.css”>
<title>My Website</title>
</head>
<body></body>
</html>
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm


+ 发表回复

分页: 1 / 1