Weekly Dairy
Weekly Dairy
<!doctypehtml>DeclarationofversionHTML
<html>Containerforthedocument</html>
2 <head><title>Titleofthewebpage.</title></head>
<body> Contentofthewebpage<body>
4 lists
Ordered list <ol></ol>Unordered list
<ul></ul>Listtag<li></li>
Weekly summarization of the above activities : Practical Implement on HTML block level tags, list tags Check
button, radio button and div tag.
Anchor tag<a></a>
Target attribute used to open link in new tab or the sameTo redirectin
1
sametab.
target=”_self”
To redirectin newtab.
target=”_blank”
TextFormatting:
Horizontalline tag<hr>
2 It is singular tag used to add horizontal
line.Boldtag<b></b>Usedboldtext.
Super-script tags <sup></sup>Sub-
scripttags<sub></sub>
WayofdefiningCSS:
4 UsingTagname:Usewhenwe haveonlyone tag.(e.g.:p{color:red;})
UsingId:weuse‘#’towrite CSSforid.(e.g.:#name{height:50px;})
UsingClassname:weuse‘.’TowriteCSSforclass. (e.g.:.head{color:black;})
Color(color:“colorname”;)
BackgroundType:
5
background-color:“colorname”;
background-image:url(“src”);
background-repeat:repeat-x,repeat-y,orno-repeat
6 Assignment-DesignfirstwebsiteusingHeader,ArticleandFooter
Introductionto Bootstrap.
4 Online-bootstrap:<linkrel="stylesheet"href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/
bootstrap.min.css">
Offlinebootstrap:(downloadbootstrapfileandinclude itintag)
Classes:ContainerandContainer-fluid.
5 Grid:Gridismadeupofgroupingof RowsandColumns inside1ormoreContainers.
Usedforlayout,specificallyResponsiveLayouts.
Jumbotronclass:usedto createagreybox.
6 Table class:tableclass=“table”.
table-bordered,table-striped,table-condense,table-responsive.
Image-classes:img-rounded,img-thumbnail,img-responsive,img-circle.
Form:form-control,form-group.
3 Columns:col-lg-6/12,col-xs-12/6,col-sm-4/6,col-md-4/6.
Symbols: glyphicon(envelop,search,etc.)
Buttonprimaryclass:active, disabled.
4 Button-group:btn-group,caret(usedtocreateselectbox).
Dropdown-menu:dropdown-menu(tocreatelistbox
Progress:classprogress-bar.
5 Progress-bar-success,progress-bar-info,progress-bar-warning.progress-striped,
progress-stripped-active
6 Assignment-DesignfirstwebsiteusingHeader,ArticleandFooterusingBootstrap
Introductionto JavaScript
1 Applications: To change HTML content, to change CSS object, change HTML object,
Form-validation,etc.
DisplayPossibilities:
1. Using.innerHTML
2 2. document.write()
3. window.alert()
4. console.log()
Scripttag:<scripttype=css/javascript></script>
Method:document.getElementById();`
3
1. ChangeHtml content.innerHTMLused
tochangehtml content.
2. ChangeCSScontent.
styleusedtochange CSScontent
.srcusedtoperform actiononimage.
4
.styleusedto changeCSSobject.
Hide:.style.display=’none’(HidetheContent.)
Show:style=”display:none”(WhenonclickeventhappenshowtheContent.)
Variable:
Used
5
tostorevalues.varusedtoassignname.
Rules ofcreatingvariable.
Datatypes.
Operators:
1
Arithmeticoperators.Assignment operators.Bitwiseoperators.Logicaloperators (AND(&),OR(|),NOT(!)).
Statements:
2 if,if-else, if…else if
Functions.
Form-validation.
1) IntroductionTophpandhowtodownload,installandoperateXamppserver.
2) Also run php programs using local host.3)Structure of php
program and some basicsEx:-<?php
4 $t=date(“H”);
If($t<”20”){
Echo“Haveagood day!”;
}
?>
Conditonal Statements in php:1)if(condition){
Codetobeexecutedifconditionistrue;
}
2) if(condition){
5 Codetobeexecutedifconditionistrue
}else{
Codetobe executedif conditionisfalse;
}
switch
Loops:
1) Whilewhile(conditionistrue){
codetobeexecuted;
}
6 2) dowhile do{
codetobeexecuted;
}while(conditionis true);