BioJS |
Hyper Text Markup Language
HTML is a markup language for describing web documents (web pages).
<html>
<head>
<title>My title</title>
</head>
<body>
<a href="">My link</a>
<h1>My header</h1>
</body>
</html>
HTML is designed for marking up text by adding tags such as <p> to create HTML elements. HTML tags begin with < and end with >. Tags often occur in pairs of opening and closing tags. Some tags such as <img> always occur alone. Those tags usually (but do not require to) have a trailing slash.
Tags can have attributes. For example, <a> tag has href attribute for defining link target. Similarly, <img> tag has src attribute for defining image source.
<html>
<head>
<title>My title</title>
</head>
<body>
<a href="">My link</a>
<h1>My header</h1>
</body>
</html>
Objects in the DOM can be manipulated by JavaScript (add/remove Element)
See the Pen HTML TO STRUCTURE by Jose Villaveces (@secevalliv) on CodePen.
Cascading Style Sheets
CSS is stylesheet language for the web. Makes webpages look good.
Example Porperties:
color: red; background-color: steelblue; display: none; font-family: Times;
See the Pen vLMxPY by Jose Villaveces (@secevalliv) on CodePen.
See the Pen codevember #5 : Fitbit Moon by Smokie Lee (@xtoq) on CodePen.
<script type="text/javascript">
alert("Hello world!");
</script>
<script src="viz.js"></script>
//Objects in the DOM can be manipulated by JavaScript
function changeTitle(){
var title = document.getElementById("slideTitle");
title.innerText = "See?? JS can manipulate dom objects";
}