Questions about this topic? Sign up to ask in the talk tab.

Difference between revisions of "HTML"

From NetSec
Jump to: navigation, search
Line 1: Line 1:
 
<b>H</b>yper <b>T</b>ext <b>M</b>arkup <b>L</b>anguage is the basic building blocks of webpages. Written in HTML elements made of up tags within brackets, HTML is interpreted by a web browser and then displayed in the form of a web page.
 
<b>H</b>yper <b>T</b>ext <b>M</b>arkup <b>L</b>anguage is the basic building blocks of webpages. Written in HTML elements made of up tags within brackets, HTML is interpreted by a web browser and then displayed in the form of a web page.
 +
 +
Contrary to popular belief HTML is NOT a programming language, it is a mark-up language.
  
 
HTML 5 is the latest implementation, and though widespread usage is under way, it remains in development.
 
HTML 5 is the latest implementation, and though widespread usage is under way, it remains in development.
Line 5: Line 7:
 
==Elements and attributes==
 
==Elements and attributes==
 
''Elements'' are parts of the HTML document, such as the tags or attributes. ''Attributes'' are values of tages, such as the ''style'' attribute.
 
''Elements'' are parts of the HTML document, such as the tags or attributes. ''Attributes'' are values of tages, such as the ''style'' attribute.
 +
 +
==Tags==
 +
{| class="wikitable"
 +
!Tag
 +
!What it does
 +
|-
 +
| <b></b>
 +
| Bold text
 +
|-
 +
| <body></body>
 +
| The body of the page
 +
|-
 +
| <center></center>
 +
| Centers text
 +
|-
 +
| <h1> up to <h6>
 +
| Heading sizes
 +
|-
 +
 +
|}
  
 
===Example===
 
===Example===

Revision as of 00:45, 31 August 2012

Hyper Text Markup Language is the basic building blocks of webpages. Written in HTML elements made of up tags within brackets, HTML is interpreted by a web browser and then displayed in the form of a web page.

Contrary to popular belief HTML is NOT a programming language, it is a mark-up language.

HTML 5 is the latest implementation, and though widespread usage is under way, it remains in development.

Elements and attributes

Elements are parts of the HTML document, such as the tags or attributes. Attributes are values of tages, such as the style attribute.

Tags

Tag What it does
Bold text
<body></body> The body of the page
Centers text

up to

Heading sizes

Example

<html> this is an element
<head><title>html</title></head>
<body style="background-color:red;"> this element contains the "style" attribute
<p>Hello world</p>
</body>
</html>

See also

HTML is part of a series on programming.
<center>
</center>