Wednesday, July 18, 2012

HTML code / CSS basics or how to make a website


Many have always wanted to make a website, but did not know how to

do. Often seeks a sticky link where you can

just uzataisīt your website, but they usually do nothing shining

not published. So today I'll show you how to make a website using

only the keyboard and the application Notepad or Notepad.

First you have to do is open up Notepad, which can be found below

"Accessories" or press "winows key" + "r". write a notepad,

you press the "Enter" and you'll be done.

Now with pieķersimies harder. Same core of the same name

HTML. This means HyperText Markup Language, but hardly any of it

really interest. All websites are the foundation upon which they are built.

Very often this is the same reason. That is:

-------------------------------------------------- ----------------------

----------------------------------------

<html>

<head>

<title> </ title>

<style>


</ Style>

</ Head>

<body>


</ Body>

</ Html>.

-------------------------------------------------- ----------------------

----------------------------------------

<html> - It shows that this is what you make up a website. It includes

all the rest of the code.

<head> - This includes both <style> and <title> and basically it involves

includes website design.

<title> - There's the recorded information will be displayed at the top, we

I'll call titulvietu.

<body> - There are written, that's what you want to write, basically everything

will appear on your website.

If there had noticed the title of each of these two times, but the other

section in brackets was the slash. Each category has its own ending,

preceded by a slash after the first two chapters iekavām.Starp them to you

must write the required information.

Spaces and new lines between the sections you can build as much as you like.

Then, when it will be recorded in your Notepad document, you can

Save as HTML file (this means that the file name at the end of

to be written. html). Then you open it open you will see a white page,

show that you have not committed any error.

Let's start gutted the HEAD section. The first will be the pants. Unfortunately, there really is no

much to tell, but if not yet clear where it is now I

I see that there is written "Add Story >> Spoki.lv". In no

nesajaucat titulrakstu case with which it preceded by "www.". This is

Domain name and do not worry about it now.

STYLE section will have more of everything. Style has more to do with CSS. CSS is

a specific style sheet language used to describe the appearance of markup

Performs documents. It is the most popular pielietijums HTML and

XHTML. If your website gribēsietveidot CSS languages, then place <style>

you write <style type="text/css">. I prefer CSS directly

because it gives more options.
<h1> - This includes the text will be formatted according to the explanatory statement.
Explanations can set text color, font, size, and yet this and that

other. Under STYLE section must write an explanation, and then under the BODY

section is the one jāitver taksts.
An example.
-------------------------------------------------- ----------------------

<html>

<head>

<title> This is my page </ title>

<style type="text/css">

h1 {color: green;}

</ Style>


</ Head>

Hello <h1> around! </ h1>

<body>


</ Body>

</ Html>

-------------------------------------------------- ----------------------
If it will be copied to your page, then you redēsiet text to large

green letters, where it says "Hi all round". It is also possible <h2>

and <h3>, and so on until the end of time. Each may have its own explanation. If

you nepaskaidrosiet H1 and H2, then you will just be bigger letters. Not

must be written in size where it is explained that correspond to the H1 and

a size if you just want more letters. If you do not want

ie large letters, the H1 offers you, then use the H2, which offers

smaller letters on the H1. To be continued in the second part.

No comments:

Post a Comment