search
[last updated: 2024-01-22]
CSS
using Javascript
-----
-------------------------
<html>
some stuff here ...
</html>
If you double-click this file in your file manager, it will successfully load a webpage into a browser,
and display the "some stuff here ..." line of text.
<!DOCTYPE html>
<html lang=”en” manifest="/cache.appcache">
<head>
<title>(put your desired title here...)</title>
<meta charset="utf-8">
<link rel="stylesheet" href="(put the url of your css file here ...)">
<style>
</style>
</head>
<!-- ------------------------------------------------ -->
<body>
<h1>
this is a demonstration heading
</h1>
<p>
This is a demonstration paragraph.
</p>
</body>
</html>
-------------------------
Needs edit/cleanup below here ...
Using the <style> tag/element in this way is an example of "internal" styling.
<head>
<style>
body {background-color: pink;}
h1 {
color: red;
text-align: center; }
</style>
</head>
-------------------------
-----------------------------------------------------------------------------------------------------
eof