0% found this document useful (0 votes)
46 views20 pages

Sir Work

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 20

Index.

html

<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>My first website </title>
</head>
<body>
<div class="mainpage">
<div class="container">
<div class="header">
<div class="headerTextLeft">
<h1>
My beautiful new website
</h1>
<p>Here you find all information you need</p>
</div>
<div class="headerTextRight">
<div class="headerBox">
<p>ABCDEFGHIJ</p>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>

</div>
</body>
</html>

Css

.mainpage{
background-color:black;
width:100%;height:100%;

}
.container{
width: 80%;
background-color: #ffffff;
margin-left: auto;
margin-right: auto;
padding: 20px;
}
.header{
background-color: #95BC20;
}
.headerTextLeft{
width: 50%;
float: left;
}
.headerTextLeft h1{
font-size: 18pt;
font-weight: bold;
padding: 35px 0px 0px 10px;
color: #FFFFFF;
font-style: italic;
height: 20px;
}
.headerTextLeft p
{
font-size: 12pt;
font-weight: bold;
padding: 5px 0px 0px 10px;
color: #FFFFFF;
}
.headerTextRight{
width: 50%;
float: left;
}
.clearfix{
clear: both;
}
.headerBox{
background-color: #ffffff;
width: 180px;
height: 130px;
margin-top: 10px;
margin-bottom: 10px;
margin-right: 10px;
float: right;
text-align: center;
position: relative;

}
.headerBox p
{
position: absolute;
left: 45px;
top: 45px;
}

HTML Tags Ordered Alphabetically


= New in HTML5.

Tag Description

<!--...--> Defines a comment

<!DOCTYPE> Defines the document type

<a> Defines a hyperlink

<abbr> Defines an abbreviation or an acronym

<acronym> Not supported in HTML5. Use <abbr> instead.


Defines an acronym

<address> Defines contact information for the author/owner


document

<applet> Not supported in HTML5. Use <embed> or <objec


Defines an embedded applet
<area> Defines an area inside an image-map

<article> Defines an article

<aside> Defines content aside from the page content

<audio> Defines sound content

<b> Defines bold text

<base> Specifies the base URL/target for all relative URLs


document

<basefont> Not supported in HTML5. Use CSS instead.


Specifies a default color, size, and font for all text
document

<bdi> Isolates a part of text that might be formatted in


direction from other text outside it

<bdo> Overrides the current text direction

<big> Not supported in HTML5. Use CSS instead.


Defines big text
<blockquote> Defines a section that is quoted from another sou

<body> Defines the document's body

<br> Defines a single line break

<button> Defines a clickable button

<canvas> Used to draw graphics, on the fly, via scripting (us


JavaScript)

<caption> Defines a table caption

<center> Not supported in HTML5. Use CSS instead.


Defines centered text

<cite> Defines the title of a work

<code> Defines a piece of computer code

<col> Specifies column properties for each column withi


<colgroup> element
<colgroup> Specifies a group of one or more columns in a tab
formatting

<datalist> Specifies a list of pre-defined options for input con

<dd> Defines a description/value of a term in a descript

<del> Defines text that has been deleted from a docume

<details> Defines additional details that the user can view o

<dfn> Represents the defining instance of a term

<dialog> Defines a dialog box or window

<dir> Not supported in HTML5. Use <ul> instead.


Defines a directory list

<div> Defines a section in a document

<dl> Defines a description list

<dt> Defines a term/name in a description list


<em> Defines emphasized text

<embed> Defines a container for an external (non-HTML) ap

<fieldset> Groups related elements in a form

<figcaption> Defines a caption for a <figure> element

<figure> Specifies self-contained content

<font> Not supported in HTML5. Use CSS instead.


Defines font, color, and size for text

<footer> Defines a footer for a document or section

<form> Defines an HTML form for user input

<frame> Not supported in HTML5.


Defines a window (a frame) in a frameset

<frameset> Not supported in HTML5.


Defines a set of frames
<h1> to <h6> Defines HTML headings

<head> Defines information about the document

<header> Defines a header for a document or section

<hr> Defines a thematic change in the content

<html> Defines the root of an HTML document

<i> Defines a part of text in an alternate voice or moo

<iframe> Defines an inline frame

<img> Defines an image

<input> Defines an input control

<ins> Defines a text that has been inserted into a docum

<kbd> Defines keyboard input


<label> Defines a label for an <input> element

<legend> Defines a caption for a <fieldset> element

<li> Defines a list item

<link> Defines the relationship between a document and


external resource (most used to link to style shee

<main> Specifies the main content of a document

<map> Defines a client-side image-map

<mark> Defines marked/highlighted text

<menu> Defines a list/menu of commands

<menuitem> Defines a command/menu item that the user can


from a popup menu

<meta> Defines metadata about an HTML document

<meter> Defines a scalar measurement within a known ran


gauge)

<nav> Defines navigation links

<noframes> Not supported in HTML5.


Defines an alternate content for users that do not
frames

<noscript> Defines an alternate content for users that do not


client-side scripts

<object> Defines an embedded object

<ol> Defines an ordered list

<optgroup> Defines a group of related options in a drop-down

<option> Defines an option in a drop-down list

<output> Defines the result of a calculation

<p> Defines a paragraph

<param> Defines a parameter for an object


<picture> Defines a container for multiple image resources

<pre> Defines preformatted text

<progress> Represents the progress of a task

<q> Defines a short quotation

<rp> Defines what to show in browsers that do not sup


annotations

<rt> Defines an explanation/pronunciation of character


Asian typography)

<ruby> Defines a ruby annotation (for East Asian typogra

<s> Defines text that is no longer correct

<samp> Defines sample output from a computer program

<script> Defines a client-side script

<section> Defines a section in a document


<select> Defines a drop-down list

<small> Defines smaller text

<source> Defines multiple media resources for media eleme


(<video> and <audio>)

<span> Defines a section in a document

<strike> Not supported in HTML5. Use <del> or <s> instea


Defines strikethrough text

<strong> Defines important text

<style> Defines style information for a document

<sub> Defines subscripted text

<summary> Defines a visible heading for a <details> element

<sup> Defines superscripted text

<table> Defines a table


<tbody> Groups the body content in a table

<td> Defines a cell in a table

<template> Defines a template

<textarea> Defines a multiline input control (text area)

<tfoot> Groups the footer content in a table

<th> Defines a header cell in a table

<thead> Groups the header content in a table

<time> Defines a date/time

<title> Defines a title for the document

<tr> Defines a row in a table

<track> Defines text tracks for media elements (<video>


<audio>)
<tt> Not supported in HTML5. Use CSS instead.
Defines teletype text

<u> Defines text that should be stylistically different fr


text

<ul> Defines an unordered list

<var> Defines a variable

<video> Defines a video or movie

<wbr> Defines a possible line-break

Description Example Syntax Result

Bolded Text <b>Bolded Text</b> Bolded Text

Italicized Text <i>Italicized Text</i> Italicized Text

Deleted Text <del>Deleted Text</del> Deleted Text

Big Text <big>Big Text</big> Big Text

Small Text <small>Small Text</small> Small Text

Subscript H<sub>2</sub>O H2O


Superscript 3 x 10<sup>8</sup> 3 x 108

HTML Ignore <xmp><b>Text</b>&#60;/xmp> <b>Text</b>

Hyperlink <a href="http://www.google.com">Google</a> Google

Email
<a [email protected]
Hyperlink href="mailto:[email protected]">[email protected]</a>

CSS Text Formatting


These features must be used as arguments of the "style" argument of a
"span" or "div" tag surrounding the text.

Attributes may be combined under style="" of the SPAN tag and seperated by
a semicolon as such:
<span style="attribute:value;attribute2:value">Text</span>

Description Attribute Syntax Result

Underlined text-
Underlined Text
Text decoration:underline

Font Color color:red Red Text

text- Text will be aligned to the left,


Aligned Text
align:left/right/center right, or center

Change the
font-family:fontname Text will be in style "fontname"
Font
Font Size font-size:200% 2x Size Text

Self-closing Tags
Tags that, by definition, contain nothing between the opening and closing
tags must self-close with a space and forward slash:

Images <img src="something.jpg" />

Carriage Return <br />

Horizontal Breaking Line <hr />

Useful Characters
This is a small list of characters that may be useful in the E-logs. For a more
complete list, see Character Chart.

Note:All characters are of the format: (ampersand)(charname)(semicolon).

Description Syntax Result

Function Symbol &fnof; ƒ

Greek Capital Letter &(Lettername); &Delta; yields Δ


Greek Lowercase Letter &(lettername); &delta; yields δ

&uarr;, &darr;, &larr;, &rarr;, ↑, ↓, ←, →, ↵,


Arrows
&crarr;, &harr; ↔

For All Symbol &forall; ∀

Partial Differential &part; ∂

"There Exists" Symbol &exist; ∃

Empty/Null Set &empty; ∅

Nable Symbol &nabla; ∇

"Element of" Symbol &isin; ∈

"Not an Element of"


&notin; ∉
Symbol

"Contains as Member"
&ni; ∋
Symbol

Radical Sign &radic; √

"Proportional To" Symbol &prop; ∝

Infinity Symbol &infin; ∞

Angle Symbol &ang; ∠

Integral Symbol &int; ∫


"Therefore" Symbol &there4; ∴

"Similar to" Symbol &sim; ∼

"Almost Equal to" Symbol &asymp; ≈

"Not Equal to" Symbol &ne; ≠

"Equivalent to" Symbol &equiv; ≡

"Less-than or Equal to"


&le; ≤
Symbol

"Greather-than or Equal
&ge; ≥
to" Symbol

"Vector Product" Symbol &otimes; ⊗

"Perpendicular to"
&perp; ⊥
Symbol

"Much Greater Than"


&raquo; »
Symbol

"Much Less Than"


&laquo; «
Symbol

Degree Symbol &deg; °

"Plus/Minus Error"
&plusmn; ±
Symbol

"Letter O with Slash" &Oslash; Ø


Symbol

No break space &nbsp;

How to Create Lists


Unordered list:
uses <ul> and </ul> tags, and each list item must be inside <li> and </li>

Example:

<ul>
<li>List item</li>
<li>Second Iten</li>
<li>Third Item</li>
<ul>

Yields:

 List item
 Second Item
 Third Item

Ordered list:
uses <ol> and </ol> tags, and each list item must be inside <li> and </li>

Example:

1. List item
2. Second Item
3. Third Item
How to Create Tables
Simple data tables consist of three parts:
<table>, <tr> and <td>
Where all elements are contained within the <table> tags, <tr> tags surround
a row, and <td> tags surround a table cell's content. As an example, the code:

<table border="1">
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
</tr>
</table>

Yields the table with a border (notice above the use of the border="1" attribute
to create a border):

Row 1, Cell 1 Row 1, Cell 2

Row 2, Cell 1 Row 2, Cell 2

You might also like