Cac the co ban trong html: <h1> Heading Level 1</h1> …… <h6> Heading Level 6</h6> <B> </B> Bold <strong></strong> <I></I> Italic <em></em> <tt> </tt> typewriter chu thanh <U></U> Underline <BR> Xuong dong <P></P> Tao doan van ban <HR> tao duong ke ngang <Blockquote> ………..text………</Blockquote> Chuc nang chen mot khoi van ban thut <Address> Liên kết tới CSS : <link type=”text/css” rel=”stylesheet” href=”stylesheet.css”>
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Cac the co ban trong html: <h1> Heading Level 1</h1>……
<Blockquote> ………..text………</Blockquote> Chuc nang chen mot khoi van ban thut
<Address> Liên kết tới CSS : <link type=”text/css” rel=”stylesheet” href=”stylesheet.css”>
<BaseFont> Thiet lap font Style chu cho toan van ban<p style="font-size: 12px"><h2 style="color:red"><h2 style="color: green; font-size:12px"><h1 style="font-family: Arial">Title</h1><p style="background-color: red;">Hello!</p><!--This is an example of a comment!--><h1 style="text-align:center">font-weight: bold;text-transform: uppercase;text-decoration:none || underline; //link khong co gach chan o duoi
<Border> Thiet lap box cho đối tượngborder:1px dashed blue; rong 1 dang cham bi, xanhborder:1px solid black; dang duong thangborder-radius: 5px; Tao mot border hinh tu
float:right;element { clear: /*right, left, or both*/}
padding:0px 30px 0px 10px;
margin: 10px 5px 5px 50px
Position:Mặc định là static và không dùng được các giá trị left right top bottom
Position: absoluted : Vị trí của nó không phụ thuộc vào cha
Position: relative: Vị trí của nó phụ thuộc vào vị trí của cha
position_Parent="relative" thi tuc la con chay theo cha cac con cua no se co thuoc tinh top left right bottom theo no
position_Child="absolute" thi tuc la no se chay theo cha no co the de len cac phan tu khac
Position:Fixed : Vị trí của nó lăn theo con lănmargin-left:auto; SET DIV CENTERmargin-right:auto; SET DIV CENTER
div {
display: inline-block;
margin-left: 5px;
height:100px;
width:100px;
border-radius:100%;
border: 2px solid black;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
text-align:center;
}
span{
display:inline-block;
margin-top:30;
text-align:center;
line-height:20px;
}
Link-Visited-Hovera:link: An unvisited link.a:visited: A visited link.a:hover: A link you're hovering your mouse over.
a:unvisited
z-indexChon conChú ý trong CSS thì các id luôn xếp sau, class xếp trước còn các selector thông thường trên cùng
div “.””#””style”
p:first-child { color: red;}p:nth-child(4){}display: inline-block;Mac dinh cac thanh phan nhu <div> <h1> <h6> la block tuc la khi xep nhieu thi chung tu xuong hang nhung neu chi muon no o vi tri cua no ta dung inlinelay con dau tien
div> p chi truc tiep den thang con
div p tro den ca con lan chau<font size = “6” face = “ “ color = “ “>
<Pre > Hien thi dang chu danh may
<Sub> Van ban viet duoi dang Subscript. Van ban in thap hon chu thuong
<Sup> Van ban viet duoi dang Supperscript. Van ban in hoi cao hon chu thuong
Frame<frameset rows = "30%, *"> chia thành 2 hàng, hàng thứ nhất chiếm 30% màn hình, còn lại là hàng thứ 2.
<frameset cols = "*, 100, *"> chia 3 cột, cột thứ 2 có độ rộng 100 điểm, các cột còn lại sẽ tự động phân chia.
<frameset rows = "30%, *" border=0 framespacing = 5 frameborder = 0>: đặt đường viền, khoảng cách, ...
<frame src="URL"
name="tên cửa sổ"
with = "N"
height = "M"
scrolling = "yes/no/auto"
frameborder = "yes/no"
framespacing = "N"
bordercolor = #xxyyzz
noresize >
Tạo các trang con Header.html, left.html, main.html, footer.html <frameset rows="50,*,50"> <frame src="header.html" /> <frameset cols="30%,*"> <frame src="left.html" /> <frame src="main.html" /> </frameset>
<frame src="footer.html" /> <noframes> Trình duyệt không hỗ trợ Frame </noframes> </frameset>
Chapter Summary Use the style attribute for styling HTML elements Use background-color for background color Use color for text colors Use font-family for text fonts Use font-size for text sizes Use text-align for text alignment Span dùng để nhóm một khối phần tử trong khi Div nhóm nhiều phần tử
Cac cau truc dieu khien trong java scrip<SCRIPT language = “JavaScript”>while(bt_dk){}for(…)if(){} else{}alert(“ ” + …);function ten_ham(thamso_1, thamso_2, …..){code}khai bao bien dung var x = “”;onChange Người sử dụng đổi giá trị trong đối tượng (textbox, checkbox, select..)
onClick Người sử dụng nhấn nút chuột lên đối tượng
onMouseOver Người sử dụng đưa con trỏ lướt ngang qua đối tượng
onMouseOut Người sử dụng đưa con trỏ ra khỏi đối tượng
onSubmit Kích hoạt biểu mẫu gửi đi
onBlur Di chuyển con trỏ ra khỏi đối tượng
onFocus Đối tượng nhận con trỏ
onLoad Một trang đã tải xuống hoàn chỉnh
onUnload Người sử dụng rời khỏi trang hoặc tải lại trang
{X,Y} Kiểm tra ký tự xuất hiện tối thiểu X lần và tối đa Y lần
{X,} Kiểm tra ký tự xuất hiện ít nhất X lần
^ Kiểm tra ký tự bắt đầu chuỗi
$ Kiểm tra ký tự kết thúc chuỗi
Window
Thuộc tính Ý nghĩa Phương thức Ý nghĩadefaultStatus Thông báo ngầm
định hiển thị lên trên thanh trạng thái của cửa sổ
alert(“message”) Hiển thị hộp thoại với chuỗi message và ok
Frames Mảng xác định các frame trong cửa sổ
clearTimeout(timeoutID) Xóa timeout
Length Số lượng các frame trong cửa sổ cha mẹ
windowReference.close Đóng cửa sổ windowReference
Name tên cửa sổ hiện thời
confim(“message”) Hiển thị hộp thoại với chuỗi message. OK và cancle
Parent Đối tượng cửa sổ cha mẹ
prompt(“message”, input) nhập
Self Cửa sổ hiện thời TimeoutID=setTimeout(experession, msec)
Đánh giá biểu thức expression
Status Ghi đè lên defaultStatus
Top Cửa sổ trên cùngWindow Cửa sổ hiện thời
ADO.Net
Kết nối cơ sở dữ liệuusing System;using System.Collections.Generic;using System.ComponentModel.DataAnnotations;using System.Data.Entity;using System.Linq;using System.Web;
namespace Myclasshello.Models { public class SinhVien { public int id { get; set; } [Required(ErrorMessage="Phai nhap truong nay")] [Display (Name="Họ và tên")] public string hoten { get; set; } [DisplayFormat (DataFormatString="{0:dd:mm:yyyy")] public DateTime ngaysinh { get; set; } public string diachi { get; set; }
} public class SinhVienDbContext : DbContext { public DbSet<SinhVien> SinhVien { get; set; }
}}
Html5, Css3,JavaScript - > Jquery -> AJAX || ASP.NET -> JSON -> BootsTRap -> NoteJS -> Bat dau hoc lap trinh ASP.NET
Lập trình C#Các biến khai báo public private protected
Lệnh vào ra: i = Convert.ToInt32(Console.ReadLine());44
Console.WriteLine("1. Thuc hien phep cong");
Lớp và đối tượngCông thức để tạo một class AccessModifier class className { // thân class }
Kế thừa
override
Override thông minh
Enum
IO Namespace chứa những lớp cho phép thao tác đọc và ghi dữ liệu đến những luồng dữ liệu và file. Một số lớp của System.IO được liệt kê như sau: