- It is a logical set of codes that constitues the appearance of a web document and the information contained. The codes are written in '<' (open bracket) and '>' (closed bracket), although they are not really brackets, that is what they are called and look like: < >.
Example:<BODY> or <DIV>- Most elements (also named tags) have an element (tag) for opening and a closing element distinguished by '/' inside the brackets: '< >'.
<DIV> ... </DIV>
- The first word that appears inside the '<' is called element or HTML label and tells the browser what item to create; something like <DIV> (a block element).<DIV style='color:blue;'>This text will be blue</DIV>
- A HTML document (file) consists of several elements and their attributes.
- At first a HTML element contains (surrounds ) the document's data. This element contains two main sub-elements HEAD and BODY. In HEAD you can add the webpage's title and other elements known as metatags, and also JavaScript scripts and CSS styles. In BODY you add the document's content which will be displayed on the webpage.
<!DOCTYPE html> <html> <head> <title>Document Title</title> </head> <body> Webpage content </body> </html>
The overall structure of a HTML document
<input type="checkbox" name="a_name" value="value" checked="checked" />
#id { background:url("path_to_image.png"); background-size:contain; background-repeat:no-repeat; }
var rest8_7 = 8 % 7; alert(rest8_7);
$nr = ceil(3.5); echo $nr; // 4