Question:

How do we declare CSS in HTML?

by  |  earlier

0 LIKES UnLike

macromedia dreamweaver mx

 Tags:

   Report

3 ANSWERS


  1. Dont know about DreamWeaver, but the HTML for CSS is:

    <style type="text/css">

    /*CSS STUFF HERE*/

    </style>

    minus the /* */


  2. Its actually easily explained in the Reference entry at Brugbart: An Introduction to CSS - http://www.brugbart.com/References/6/

    -----StartCode----Link-

    <link rel="stylesheet" type="text/css" href="StyleSheet.css">

    -----CodeEnd---ExternalStyleSheet-Link...

    -----StartCode----EmbeddedCSS/StyleEle...

    <style type="text/css">

      @import url("StyleSheet.css");

    </style>

    -----CodeEnd---ExternalStyleSheet-Link...

    -----StartCode----Inline/StyleAttribut...

    <p><a href="about.html"><img src="MyImage.jpg" alt="" style="border:0;"></a></p>

    -----CodeEnd----InlineStyles-

    There should be a Source Editor in Dreamweaver, which is recommended to use, also since usage of the WYSIWYG part alone may lead to poor results.

    If you can't locate the source editor, then i suggest simply using notepad, since that's generally all you need.

  3. <link

      type="text/css"

      rel="stylesheet"

      href="/css/screen.css"

      media="screen">

    in the document <head>.

    You could also use a <style> element, but external stylesheets are recommended.

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions