Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 49
» Latest member: antwantillman
» Forum threads: 4,492
» Forum posts: 4,495

Full Statistics

Online Users
There are currently 968 online users.
» 0 Member(s) | 964 Guest(s)
Yandex, Bing, Applebot, DuckDuckGo

Latest Threads
SELECT statement with MS ...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:35 PM
» Replies: 0
» Views: 1,507
SELECT statement with the...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:31 PM
» Replies: 0
» Views: 874
Creating hyperlinks in HT...
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 01:23 PM
» Replies: 0
» Views: 1,255
What's new in HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:48 PM
» Replies: 0
» Views: 942
What is HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:43 PM
» Replies: 0
» Views: 846
Neck isometric exercises
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:44 AM
» Replies: 0
» Views: 1,198
Shoulder shrug
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 769
Neck retraction
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 754
Neck flexion and extensio...
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 857
Neck rotation
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 820

 
  Single Line Comment in HTML5
Posted by: Qomplainerz - 02-21-2021, 06:58 PM - Forum: HTML5 Tutorials - No Replies

Comments will be ignored by the browser.
You can use comments i.e. to make it easier to read your codeĀ for others when working in a team,
or to make it easier to understand what each part of the code does when trying to teach someone programming,
or for commenting out some parts of the code that didn't work as expected to fix them later.

Single line comments are done as follows:

   

If you have done it correctly your HTML document should look like this now:

   

Print this item

  HTML5 Doctype declaration
Posted by: Qomplainerz - 02-21-2021, 12:35 PM - Forum: HTML5 Tutorials - No Replies

The doctype declaration itself is not a HTML tag.
It's information for the browser on what kind of document to expect.
We can tell the browser to expect HTML5 like this:

   

Since the doctype declaration is not case sensitive other declarations are possible, too.
For example:

   

Print this item

  Basic layout of a HTML5 document on a server
Posted by: Qomplainerz - 02-21-2021, 11:38 AM - Forum: HTML5 Tutorials - No Replies

If you want to upload your HTML to a server and make sure that it works correctly
you should add a default charset and force the browser to make it responsible.
In order to do that we will add the following two lines in the head section of the HTML document:

   

If you have done it correctly your HTML document should look like this now:

   

Print this item

  Forcing the browser to read the basic HTML layout as HTML5
Posted by: Qomplainerz - 02-21-2021, 11:22 AM - Forum: HTML5 Tutorials - No Replies

To force the browser to strictly read your HTML document as HTML we have to add the following line to the code:

   

If you've done it correctly your HTML document should look like this now:

   

Print this item

  Basic layout of a HTML document
Posted by: Qomplainerz - 02-21-2021, 11:16 AM - Forum: HTML5 Tutorials - No Replies

The basic layout of a HTML document looks like this:

   

If you save it as i.e. Index.html and open it in your browser it works.

Print this item

  Hello World in Ruby 3 with user input
Posted by: Qomplainerz - 02-15-2021, 01:02 PM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

Quote:puts "Please enter something here: "
var = gets.chomp
puts var

Print this item

  Hello World in Ruby 3 with variables
Posted by: Qomplainerz - 02-15-2021, 01:01 PM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

Quote:var = "Hello, World!"
puts var

Print this item

  Hello World in Ruby 3 with values
Posted by: Qomplainerz - 02-15-2021, 12:59 PM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

Quote:puts "Hello, World!"

Print this item

  Multi Line Comment in Ruby 3
Posted by: Qomplainerz - 02-15-2021, 12:43 PM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

Quote:# This is
# a multi
# line comment

Print this item

  Single Line Comment in Ruby 3
Posted by: Qomplainerz - 02-15-2021, 12:41 PM - Forum: Ruby 3 Tutorials, exercises and examples - No Replies

Quote:# This is a single line comment

Print this item