ob-vaults/Phoenix/Zettelkasten/start webpage.md
2024-09-12 17:54:01 +03:30

48 lines
780 B
Markdown

status: #doc
Tags:
links:
Date: 2023-07-25
___
# start web page
## bare bone
```html
<!DOCTYPE html>
<html>
<head>
<title>title of site</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body></body>
</html>
```
### charset
its for encoding of characters so for best compatibility use
```html
<meta charset="utf-8" />
```
### Setting The Viewport
because of phone and laptops screen size we need to scale text and image base on width of
device so we use --> [w3](https://www.w3schools.com/css/css_rwd_viewport.asp) [mdn](https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag)
```html
<meta name="viewport" content="width=device-width, initial-scale=1" />
```
---
# References