Want your own homepage, but without using Wordpress or similar? Then the time for HTML, CSS and JavaScript has come.
For HTML, start with SelfHTML [de] to get a basic feeling for tags, contents and so on. Some early notes:
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width">
Styling should be done exclusively with CSS [de] [wtf], e.g. inspired by CSS Zen Garden. Though less than intuitive, it is still the most elegant way towards a well-behaved page. Again, some early notes:
em
or pt
.:auto
,
border-collapse:collapse
,
border-spacing:0
, and
empty-cells:show
;
td and
th by
border-spacing:0
again and by
padding:3pt
.
You might want
white-space:nowrap
in cells.div
wraptable (supported by flex
), see e.g. my
Pocket PC Phones page and
article.css.Images can be SVG (good in any resolution), or pixels in AV1, WEBP, or JPG (resource as PNG) formats.
Your website does not need dynamic behaviour, but you will not believe that, so take a look at JavaScript elements in a HTML page, the so-called DOM (document object model).
:none
and visibility:hidden
support "turn to background" vs "sucked into black hole".document.getElementById('my_id').style.X='Y'
and give your target an
id and not a
class.If you have a header, sidebar and main content, you will probably want to use div, aside et al. instead of tables for layout. Particularly if you want a vanishing sidebar below a certain width (nice for mobile devices).
Layout variations include:
display:flex
[guide]
[school]float:left
[forum]min-width
and max-width
.For mobile screens, you might still want to consider
conditional CSS with media queries like
@media screen and (max-width: 700px) { ... }
to get the results you want.
Search engines will crawl your site automatically, but there is still the question of hosting and indexing on a smaller scale.
Have fun and do not over-do it!
EOF (Jan:2023)