Html Course

<html> - HTML markup opening - indicates that the information that follows is written in HTML
<head> - the opening HEAD tag - page header starts here
<title>Page Title</title> - TITLE tag - here is write a few words about the content of the page - those words will appear in the browser's title bar, if the page is added to a favorites list, they appear as the name of the page.
<meta name = "keywords"
content = "... a list of keywords ...">
<meta name = "description"
content ="... suggestive phrase ...">
... other instructions: JavaScript,
CSS, etc. ...
- metatags - help search engines to index the page.
- the value of attributes, such as "keywords" should be enclosed with double quotes ("), the keywords from content attribute are separated by a comma, eg: content="courses, free lessons, html, tutorials".
</head> - closing HEAD tag - page header ends here, what is in the header does not appear in the browser window.
<body> - opening BODY tag - it begins the body of the document, here is added the content that appears in Web page
... Text Content, HTML tags, images ... - everything that is addes here will be displayed in the browser window
</body> - closing BODY tag - it indicates the end of the document body
</html> - closing HTML tag

The HTML instructions (also called tags) begin with an open angle bracket < followed immediately by the name of the tag, one or more attributes (optional), then an closing angle bracket >.
Most instructions in pairs, the first is marking the opening and is of the form: that from the end it's the closing mark and does not contain attributes or spaces, is as follows: Spaces are permitted only between the statement and attribute names. The content located between the opening and closing tag will have the characteristics of that element.
The browser ignores the elements that it can't understand and those misspelled.
For example (if we symbolize the space by '_', than):
 
Wrong Result Good Result
<_h2>text</h2> < h2>text <h2> text </h2>

text

<_h4 _ style=color:red> text </_h4_> < h4 style=color:red> text </ h4 > <h4 style="color:red"> text </h4>

text

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is used to include external CSS file in web page?
<body> <script> <link>
<link href="/templ/style.css" rel="stylesheet" type="text/css" />
Which CSS property sets the text size?
font-weight text-decoration font-size
h2 {
  font-size: 1em;
}
Indicate the JavaScript property that can add HTML code into an element.
text value innerHTML
document.getElementById("someID").innerHTML = "HTML content";
Click on the function that returns the number of characters of a string in PHP.
count() strlen() stristr()
$str = "http://CoursesWeb.net/";
$nr_chr = strlen($str);
echo $nr_chr;       // 22
The general structure of HTML document

Last accessed pages

  1. PHP getElementById and getElementsByTagName (49160)
  2. jQuery Drag and Drop Rows between two similar Tables (12805)
  3. Read Excel file data in PHP - PhpExcelReader (96727)
  4. CSS3 - text-shadow, word-wrap, text-overflow (1298)
  5. Tutorial Motion Presets (2516)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (334)
  2. Read Excel file data in PHP - PhpExcelReader (128)
  3. The Four Agreements (98)
  4. PHP Unzipper - Extract Zip, Rar Archives (95)
  5. The Mastery of Love (90)
Chat
Chat or leave a message for the other users
Full screenInchide