Advertisement

HTML & CSS design and build websites free computer tutorial

HTML Uses Elements to Describe the Structure

Let's look closer at the code from the last page. There are several different elements. Each element has an opening tag and a closing tag.

CODE
HTML & CSS design and build websites free computer tutorial








Tags act like containers. They tell you something about the information that lies between their opening and closing tags. 

DESCRIPTION

HTML & CSS design and build websites free computer tutorial in Computer Gyan

Attributes Tell Us More About Elements  

Attributes provide additional information about the contents of an element. They appear on the opening tag of the element and are made up of two parts: a name and a value, separated by an equals sign.


HTML & CSS design and build websites free computer tutorial in Computer Gyan

<body>

 You met the <body>element in the first example we created. Everything inside this element is shown inside the main browser window

<head>

Before the <body> element you will often see a <head> element.This contains information about the page (rather than information that is shown within the main part of the browser window that is highlighted in blue on the opposite page). You will usually find a <title> element inside the <head> element.

<title>

The contents of the <title> element are either  shown in the top of the browser, above where you usually type in the URL of the page you  want  to visit, or on the tab for that page (if your browser uses tabs to allow you to view multiple pages at the same time).


HTML & CSS design and build websites free computer tutorial in Computer Gyan

Thank You Reading Tutorial
Computer Gyan

Post a Comment

0 Comments