<!DOCTYPE html> <html lang="en"> <h2 id="heading">technical documentation</h2> <main id="main-doc"> <section class="main-section"> <header id="introduction"><u>introduction</u></header> <p> JavaScript is a cross-platform, object-oriented scripting language. It is a small and lightweight language. Inside a host environment (for example, a web browser), JavaScript can be connected to the objects of its environment to provide programmatic control over them. JavaScript contains a standard library of objects, such as Array, Date, and Math, and a core set of language elements such as operators, control structures, and statements. Core JavaScript can be extended for a variety of purposes by supplementing it with additional objects; for example: </p> <li>Client-side JavaScript extends the core language by supplying objects to control a browser and its Document Object Model (DOM). For example, client-side extensions allow an application to place elements on an HTML form and respond to user events such as mouse clicks, form input, and page navigation.</li> <li>Server-side JavaScript extends the core language by supplying objects relevant to running JavaScript on a server. For example, server-side extensions allow an application to communicate with a database, provide continuity of information from one invocation to another of the application, or perform file manipulations on a server.</li> </section><br><br> <section class="main-section"> <header id="what"><u>what</u></header> <p>This guide assumes you have the following basic background:</p> <li>A general understanding of the Internet and the World Wide Web (WWW).</li> <li>A general understanding of the Internet and the World Wide Web (WWW).</li> </section><br> <section class="main-section"> <header id="JavaScript_and_Java">JavaScript and Java</header> <p>JavaScript and Java are similar in some ways but fundamentally different in some others. The JavaScript language resembles Java but does not have Java's static typing and strong type checking. JavaScript follows most Java expression syntax, naming conventions and basic control-flow constructs which was the reason why it was renamed from LiveScript to JavaScript. In contrast to Java's compile-time system of classes built by declarations, JavaScript supports a runtime system based on a small number of data types representing numeric, Boolean, and string values. JavaScript has a prototype-based object model instead of the more common class-based object model. The prototype-based model provides dynamic inheritance; that is, what is inherited can vary for individual objects. JavaScript also supports functions without any special declarative requirements. Functions can be properties of objects, executing as loosely typed methods. JavaScript is a very free-form language compared to Java. You do not have to declare all variables, classes, and methods. You do not have to be concerned with whether methods are public, private, or protected, and you do not have to implement interfaces. Variables, parameters, and function return types are not explicitly typed. </p> </section> <section class="main-section"> <header id="Hello_world"><u>Hello world</u></header> <p>To get started with writing JavaScript, open the Scratchpad and write your first "Hello world" JavaScript code: <code>function greetMe(yourName) { alert("Hello " + yourName); } greetMe("World");</code> Select the code in the pad and hit Ctrl+R to watch it unfold in your browser! </p> </section> <section class="main-section"> <header id="Variables"><u>Variables</u></header> <p>You use variables as symbolic names for values in your application. The names of variables, called identifiers, conform to certain rules. A JavaScript identifier must start with a letter, underscore (_), or dollar sign ($); subsequent characters can also be digits (0-9). Because JavaScript is case sensitive, letters include the characters "A" through "Z" (uppercase) and the characters "a" through "z" (lowercase). You can use ISO 8859-1 or Unicode letters such as å and ü in identifiers. You can also use the Unicode escape sequences as characters in identifiers. Some examples of legal names are Number_hits, temp99, and _name. </p> </section><br> </main> <nav id="navbar"> <header id="nav">JS documentation</header><br> <a href="#introduction">introduction</a><br><br> <a href="#what">what you already know</a><br><br> <a href="#JavaScript_and_Java">JavaScript and Java</a><br><br> <a href="#Hello_world">Hello world</a><br><br> <a href="#variables">variables</a> </nav> <style> { @media only screen and (max-width: 400px) { #main-doc { margin-left: -10px; } </style> <style> #heading{ padding-left:150px; color:black; font-family:Verdana; } </style> <style> #navbar { position: fixed; min-width: 290px; top: 0px; left: 0px; width: 300px; height: 100%; } </style> <style> #main-doc{ padding-left:150px; } </style> <style> #introduction{ color:grey; font-size:30px ; } #what{ font-size:30px; color:grey; } #JavaScript_and_Java{ font-size:30px; color:grey; } #Hello_world{ font-size:30px; color:grey; } #Variables{ color:grey; font-size:30px; } </style> </html>
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>