Anda di halaman 1dari 3

Elements:

<!--aa-->
<script> used to import external javascript code
<h1>
<base> defines a base url for all urls on webpage
<p>
<a> used for defining links as links can be any image or
text
<body>
<html>
<head>
<iframe> A webpage within a webpage
<img>
<style> used for internal css
<link>
<abbr> used to display abbrevations for text like
<p><abbr title="world health org"></p>

<blockquote> used to display text coming from other source


<q> used to display quotations
<address> used to display address
<cite> Displays text in italic
<bdo dir=""> bi directional ovvverde This text will be written from
right to left</bdo> bi directional ovvverde flips the text like in here it flips
from
right to left like "this" to "siht"

<pre> displays text in preformatted form meaning i will not


require any line breaks or so
<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Highligh Marked text
<small> - Small text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup>
<kbd> used to differntiate text as as keyboard input
<samp> used to differntiate text as as sample out on
screen
<code> used to differntiate text as as like fordefing
that this is computer code var x=2
<var> used to differntiate text as variable content
<caption> use to give heading to the table
<tr>
<td>
<th>

Empty Elements Or Functions


<br>
<hr>
Attributes:
Lang
width
height
style
title
href
src
alt
border creates border on text
padding padding attribute creates space between border
and text
margin used for margin lines
class used to deal with specif elements like
multiple paragraphs or heading
id works same as class attribute used to work
with specific elements
rel
mailto used with href to tell html that u want to
mail someone
name used with <a> to define location of
destination
border-collapse
colspan used in tables that if table header is gonna
occupy how many coloumns
rowspan same like colspan but work for rows
id used to distinguish between similar elements
like multiple tables or paragraphs or h1
class used to distinguish between similar elements
like multiple tables or paragraphs or h1

Properties in css
background-color
font-family
font-size
text-align
color
border
type
margin/margin-to/margin-bottom used to create space outside the
border
padding/padding-top/padding-bottom used to crete space between text
and the border in the border
text-decoration
target used in anchor element

Contents:
Inline css write code for css in html first tag
internal css write code for css in head section
external css write code for css in external css
template
Values:
icon
nav
stylesheet
1px solid red
center,leftt,right

States:
Visited
unvisited
link

Anda mungkin juga menyukai