Beruflich Dokumente
Kultur Dokumente
HTML programs
==================================
1)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="VTF-8">
<title>Example document</title>
<head>
<body>
</body>
</html>
OUTPUT:
==================================
2)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="VTF-8">
<title>Example document</title>
<head>
<body>
<h1>Current Address</h1>
<p>No:22<br>ViswasNagar<br>6th cross<br>trichy-620008.</p>
<h1>Present Address</h1>
<p>No:22<br>ViswasNagar<br>6th cross<br>trichy-620008.</p>
<h1>Contact number</h1>
<p>675675675765.</p>
</body>
</html>
OUTPUT:
==================================
3)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="VTF-8">
<title>Example document</title>
<head>
<body>
<h1>Images</h1>
</body>
</html>
OUTPUT:
==================================
4)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="VTF-8">
<title>Example document</title>
<head>
<body>
<p>GOTO<a href="http:\\www.sjctni.edu">sjc</a>
today</p>
</body>
</html>
OUTPUT:
==================================
5)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="VTF-8">
<title>Example document</title>
<head>
<body>
<h1>
</a>
</p>
today</p>
</body>
</html>
6)
<!DOCTYPE html>
<html lang="en">
<head>
<title>semantic</title>
<meta charset="UTF-8">
<Style type="text/css">
header
{
nav
float:left;
width:20%;
clear:left;
min-height:400px;
section
float: left;
width:75%;
padding-left:lem;
article
float: left;
width:75%;
padding-left:lem;
footer
{
clear:both;
text-align:center;
</style>
</head>
<body>
<header>
<h1>this is my header</h1>
</header>
<nav>
<h2>Navigation</h2>
<ul>
</ul>
</nav>
<section id="1">
<h2>section 1</h2>
<p>sectionbody.....</p>
</section>
</section id="2">
<h2>section 2</h2>
<p>section body...</p>
</section>
<article>
<h2>Article</h2>
<p>Artical body...</p>
</article>
<footer>
<h2>footer</h2>
<address>
Andy harris<br/>
<a herf="mailto:andy@aharrisbooks.net">
andy@aharrisbooks.net</a>
</address>
</footer>
</body>
</html>
Output:
7)
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link
href="https://fonts.googleapis.com/css?family=Open+Sans+condensed:300|Sonise+One"rel="styleshee
t"type="text/css">
<link rel="stylesheet"href="style.css">
<!--the below three lines are a fix to get HTML5 semantic elements working in old versions of Internet
Explorer-->
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<!--Here is our main header that is used across all the pages of our website-->
<header>
<h1>header</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a><li>
<li><a href="#">Projects</a></li>
<li><a href="#">Contact</a></li>
</ul>
<!--A Search from is another commmon non-linear way to navigate through a website.-->
<from>
</from>
</nav>
<main>
<articale>
<h2>Articale heading</h2>
<p>Lorem ipsum dolor sit amet, consectectur adipisicing elit.Donec a diam lectus.</p>
<h3>Subsection</h3>
<p>Done ut librero sed accu vehicula ultricies a non tottor.Lorem ipsum dodlor sit amet.</p>
<p>Pelientesque auctor nisi id magaa consequat sagittis.</p>
<p>Vivamus fermentum semper porta. Nunc diam velit,adipscing ut tristique vitae sagittis vel odio.</p>
</article>
<!--the aside content can also be nested within the main content-->
<aside>
<h2>Related</h2>
<ul>
</ul>
</aside>
</main>
<!--And here is our main footer that is used across all the pages of our website-->
<footer>
</footer>
</body>
</html>
Output:
8)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
Output:
=============================================================
9)
<body>
<header>
<nav role="navigation">
<ul>
</li>
</ul>
</nav>
</header>
</body>
</html>
Output:
10)
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<style>
fieldset
background-color:#f1f1f1;
border:none;
border-radius:2px;
margin-bottom:12px;
overflow:hidden;
padding:0 10px;
ul
background-color:red;
border:1px solid#eaeaea;
list-style:none;
margin:12px;
padding:12px;
ul li
margin:0.5em 0;
label
display:inline-block;
padding:3px 6px;
text-align:right;
width:150px;
vertical-align:top;
input,select,button
{
font-size:100%;
.small
width:75px;
.medium
width:150px;
.large
width:250px;
.radios{
background:red;
display:inline;
margin:0;
padding:0;
.radios ul{
border:none;
display:inline-block;
list-style:none;
margin:0;
padding:0;
.radios li{
margin:0;
display:inline-block;
.radios label
margin-right:25px;
width:auto;
.radios input
margin-top::3px;
.select{
font-size:100%;
</style>
<fieldset>
<h2 class="account">Account</h2>
<fieldset class"radios">
<ul>
<li>
</li>
<li>
<input type="text"id="last_name"name="last_name"class="large"/>
</li>
<li>
<label for="Gender">Gender:</label>
<label for="male">Male</label>
<label for="female">feMale</label>
</li>
<li>
</li>
<li>
<label for="city">City:</label>
</li>
<label for="state">state:</label>
<select id="state"name="state">
<option value="AL">alabama</option>
<option value="AK">Alaska</option>
</select>
<li>
<label for="email">Email:</label>
</li>
<li>
<label for="web_site">web:</label>
</li>
<li>
<label for="phone">phone:</label>
</li>
<li>
</li>
<li>
</li>
</fieldset>
</form>
<body>
</body>
</html>
Output:
=====================================================================================