登录 | 注册 | FAQ
Anonymous

CSS and HTML

+ 发表回复

4 篇帖子 分页: 1 / 1


CSS and HTML

iDana » 周五 10月 29, 2010 11:52 am

I'm just wondering is HTML and CSS in the same coding language together or are they completely different from each other?
头像

iDana

  • 帖子: 60
  • 注册: 周二 10月 26, 2010 10:05 am
--
iDana

Re: CSS and HTML

iDana » 周五 10月 29, 2010 4:03 pm

CubeSquare 写道:Hello iDana,

Lesson 1 of the CSS Tutorial offers a great answer to your question. http://www.html.net/tutorials/css/lesson1.php

- CubeSquare


Thanks

I am still perfecting my HTML but I was just wondering because you can use CSS in html.
头像

iDana

  • 帖子: 60
  • 注册: 周二 10月 26, 2010 10:05 am
--
iDana

Re: CSS and HTML

jaantjezensis » 周三 11月 03, 2010 11:54 am

External Style Sheet
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>
Internal Style Sheet
<head>
<style type="text/css">
body {background-color:yellow}
p {color:blue}
</style>
</head>
Inline Styles
<p style="color:blue;margin-left:20px">This is a paragraph.</p>
头像

jaantjezensis

  • 帖子: 4
  • 注册: 周三 11月 03, 2010 4:29 am

Re: CSS and HTML

Zachariahbroune » 周四 12月 02, 2010 10:33 am

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<LINK href="special.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<P class="special">This is my world.
</BODY>
</HTML>
头像

Zachariahbroune

  • 帖子: 5
  • 注册: 周四 12月 02, 2010 6:25 am


+ 发表回复

分页: 1 / 1