Tuesday 12 August 2014

Introduction to HTML and CSS

HTML and CSS, as you probably know, are the most common languages used to make websites. They are very easy to use languages, and can be caught on quickly.
HTML, which stands for Hyper-Text Markup Language, as a very distinctive look, unlike almost any other language. Its basic structure looks like this:

<!DOCTYPE html>
<html>
<head>
    <title>This is the title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>

All HTML pages are made of tags, these are words surrounded by these brackets: <>. Every HTML page needs a <!DOCTYPE> tag at the top, to tell the browser that it is an HTML page. The main content of the page is found inside the body tags, and the information about the page in the head tags. The head and body tags are put inside the html tags. In the example above, there are some extra tags inside the head and body sections. Inside the head tags is the title tag. This is shown at the top of the browser window, not in the actual page. Inside the body tags are h1 and p tags. These are headings and paragraphs, which are shown in the html page.

No comments:

Post a Comment