Introduction example definition of HTML

HTML Introduction

HTML means Hyper Text Markup Language. Current version of HTML is HTML 5 and the first version is HTML 1.0. HTML is one of the easiest coding language to learn. When creating a web page there are some sections one must know, such as HTML, CSS, Javascript.


HTML Structure

<!DOCTYPE html>
<html>

<head>

<title>Webpage Title</title>

<style>
/*CSS styles written here*/
</style>

<script>
/*Javascript code written here*/
</script>

</head>

<body>
<!--HTML tags written here-->
</body>

</html>

CSS style

CSS is defined as Cascading Style Sheet
  • After HTML, we should learn CSS.
  • CSS is used to give styles for the web pages. Styles include adding colors, animations, bordering styles etc.
  • CSS can be included in a web page using three different ways, we will see those in detail in CSS chapter.
  • CSS styles can be added to a webpage depending on screen height, width and its orientation. So that we can add different styles for the same html element in different devices.

<!DOCTYPE html>
<html>

<head>

<title>HTML Textbox</title>

</head>

<body>
<input type="text">
</body>

</html>
Try it
<!DOCTYPE html>
<html>

<head>

<title>Textbox with CSS style</title>

<style>
input{
box-shadow:2px 3px 5px 3px gray;
}
</style>

</head>

<body>
<input type="text">
</body>

</html>
Try it


Javascript code

Javascript is used to make web pages more interactive with users, it is used for operations such as basic client-side validation, passing the values to the server and more.



<!DOCTYPE html>
<html>

<head>

<title>Button with javascript</title>

<script>
function test()
{
alert("Test button");
}
</script>

</head>

<body>
<button onclick="test();">Click Me</button>
</body>

</html>
Try it



Refered by tutorialcodeplay

Related Posts:

  • SQLite first setup    SQLite is not directly comparable to client/server SQL database engines such as MySQL, Oracle, PostgreSQL, or SQL Server since SQLite is … Read More
  • parseInt() in javascript     The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral s… Read More
  • Naming standards for SQLiteNaming Conventions for SQLite     Each database, table, column, index, trigger, or view has a name by which it is identifiedand almost … Read More
  • parseFloat() in javascript     The parseFloat() function parses a string argument and returns a floating point number. parseFloat is a top-level function and is … Read More
  • Delete all facebook messages at once     If you have many messages for delete from facebook, it is very difficult to select all the messages, because facebook don't have t… Read More

0 nhận xét:

Đăng nhận xét