It can be done using the <style> tag.
There are many ways to do it.
The easiest one is-
<p style="color:red">This is a paragraph.</p>
IE add style to the tag.
HTML does not have a built-in way to set margins without CSS. Margins are a property of Cascading Style Sheets (CSS), not of HTML. To set margins in HTML, you need to use CSS either directly in a βstyleβ attribute of an HTML element, or by using an external CSS file linked to your HTML document.
CSS files, which stands for Cascading Style Sheets. CSS can be set up as a separate file which can be referenced by a webpage or you can have CSS directly in a HTML document. HTML itself can also be used to control fonts and colours.
Comments are not displayed by the browser, but they can help document your HTML source code.
CSS handles the presentation portion of displaying an HTML document on the web. That is to say that CSS makes things like color, size, shape, weight, etc. possible in HTML. To say that CSS "enhances" HTML, however, is an over simplification. CSS provides separate and different functionality than HTML does. HTML does not have the abilities inherent in CSS. Instead, the CSS code makes HTML code more palatable for a human user. Most web spiders, for instance, do not employ HTML fully, if at all.
You can find a lot on CSS at the w3schools website:http://w3schools.com/css/default.aspIn general, you can apply CSS directly to an HTML element in-line using the style attribute:Link TextYou can define CSS in a style HTML tag in the head of the document:....RedLink {color: #f00;}...Or you can put your CSS in a separate file or Stylesheet and embed it in the head of the document:......A typical way of having those CSS properties applied to an HTML element is using the class attribute (which is defined by a leading period (.) in the CSS itself:Link Text
Dynamic HTML, the DOM (document object model) describes a combination of HTML tags, CSS, and scripting language.
CSS (Cascading Style Sheet) is an alternative way to style a web page. Using CSS makes the page load faster because the CSS code is in an external file not in the actual HTML document.
Attaching a CSS file is done in the <head> of your HTML document with a <link /> tag. Here's the formatting: <link type="text/css" rel="stylesheet" href="YOURFILE.css" />
CSS is used to format HTML documents (webpages); XSL is used to tell a browser in what format to display an XML document.
There are 4 ways to add a CSS doument to a HTML document. You can "link" to it putting the following into the head of your HTML. <link href="FileLocation/screen.css" rel="stylesheet" type="text/css" media="screen" /> or you can "Import it" it. <style type="text/css" media="screen"> @import url("FileLocation/screen.css"); </style> Or you can place the CSS directly into the HTML into the head of your HTML <style type="text/css" media="screen"> Your CSS Goes here </style> Or you can place it in-line with each element using the style tag, if you only have a little bit of CSS. <a href="index.html" style="color:#006bb6; font-weight:bold;">Home</a>
HTML contains the content and CSS contains the formatting.
HTML, CSS, & JavaScript.