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

Difference between revisions of "HTML"

From NetSec
Jump to: navigation, search
Line 3: Line 3:
 
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.
  
==Example==
+
==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.
 +
 
 +
===Example===
 
<pre style="background:none; border:none;">
 
<pre style="background:none; border:none;">
<html>
+
<html> this is an element
 
<head><title>html</title></head>
 
<head><title>html</title></head>
<body>
+
<body style="background-color:red;"> this element contains the "style" attribute
 
<p>Hello world</p>
 
<p>Hello world</p>
 
</body>
 
</body>

Revision as of 07:56, 26 May 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.

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.

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>