by
0
6
3,030
3
Top 1% !
Popular
Famous
Tagged
Specified
OpenSource
Popularity: 4799th place
Created
Modified Oct 18, 2013

Published on:

Architecturex86_64
LanguageHTML
LicenseMIT_X11

How to define CSS style into HTML body of a page

This simple HTML shows how to define a css style inline into the page body
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/11399/How-to-define-CSS-style-into-HTML-body-o?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
<HEAD> <STYLE type="text/css"> #myid {border-width: 1; border: solid; text-align: center} </STYLE> </HEAD> <BODY> <H1 class="myclass"> This H1 is not affected </H1> <H1 id="myid"> This H1 is affected by style </H1> <H1> This H1 is not affected </H1> <div id="myid"> This div is affected by style </div> </BODY>
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus