As mentioned in #1 Addresses and Routing html is a client side web languages. Many people get frustrated when they are starting to learn html and coding in general, but dont despair. You have to remember, that it is a laungages and if you never have seen a languages before, it will always be like readig greek (almost). But html and coding have a kind of logic to it, that makes it easy.
A basic hmtl website looks lige this:
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN”>
<title>My first styled page</title>
<div> <p> INDHOLD </p> </div>
Using netbeans i have written a basic html website and populated it with information using basic tags like paragraphs, links, images and lists. You can se an example of the code in the header image, this is a screenshoot of of the result in the browser, without Css.
Css = ”Cascading style sheet”
Css is the styling of your and can be written in the html code or as an extrenal site linked to your html in the header.
In-site css lookes like this:
font-family: Times, serif;
To link an external css file you just write:
<link rel=”stylesheet” hret=”Navnet på dit stylesheet.css” type=”text/css”>
To target a specific content, we use selectores like ; element, id and class. This allows us to make a specialle identifikation to the specific content, which then can be accesed in the css file.
Class= ”menu” = .menu
Id=”menu = #menu
I have here styled the basis html website with some basic css. It’s not pretty, but it shows the basic Css properties like backgrund-color, font-style etc.