Tree based framework. Main elements: tags.
< p > | : paragraph |
< ul > | : unordered list |
< il > | : items of a list |
< a > | : anchor, hyperlink |
< div > | : section |
< h1 > | : headings |
< table > | : tables |
<html>
  <body>
   <form id="loginForm">
    <input name="username" type="text">
    <input name="password" type="password">
    <input name="continue" type="submit" value="Login">
    <input name="continue" type="button" value="Clear">
   <form>
  <body>
<html>
PATH | COMMENTS |
---|---|
/html/body/form[1] |
absolute path for 'form' |
//form[1] |
first form in the html |
//form[@id='loginForm'] |
'form' with attribute id with value 'loginForm' |
//form[input/@name='username'] |
'form' with child with name 'username' |
//form[@id='loginForm']/input[1] |
first'input' in the selected 'form' |
//input[@name='continue'][@type='button'] |
'clear' button |
//form[@id='loginForm']/input[4] |
'clear' button |
<p style="color: red;">text</p>
<!DOCTYPE html>
<html>
  <head>
   <style>
    p{
     color: red;
    }
    a{
     color: blue;
    }
   </style>
  </head>
</html>
p{
  color: red;
}
a{
  color: blue;
}
In the html file:
<!DOCTYPE html>
<html>
  <head>
   <link rel="stylesheet" href="style.css">
...
p{
  color: red;
}
.newClass{
  color: red;
}
<p class="newClass"> Some Text </p>
p.newClass{
  color: red;
}
<p class="newClass"> Some Text </p>
#id1{
  color: red;
}
<p id="id1"> Some Text </p>
/
#