Tools, FAQ, Tutorials:
HTML 'style' Tag/Element
What Is an HTML "style" Tag/Element?
✍: FYIcenter.com
A "style" element is an optional sub-element of the "head" element.
A "link" element is used to specify Cascading Style Sheet (CSS) entries.
Here is good example of a style element:
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My Second CSS Example</title>
<style type="text/css">
body {background-color: #dddddd}
</style>
</head>
<body>
<p>Hello world!</p>
</body>
</html>
If you save the above document as hello.html, and view it with Internet Explorer, you will see a gray background specified by the CSS entry in the "style" element.
⇒ HTML Body Tag and Block Level Tags
2024-01-10, ∼1896🔥, 0💬
Popular Posts:
Can Multiple Paragraphs Be Included in a List Item? Yes. You can include multiple paragraphs in a si...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
How to how to use matched string and groups in replacements with re.sub()? When calling the re.sub()...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...