- Html
A marked language, interpreted.
Create a new html,basic.
?
- Framework
top.html bottom.html left.html main.html right.html
(Frame)
<body>
here is index.html
</body>
?
If it's frameset, it doesn't need the body.
- How to redeploy a server
- Click the first one
Then add, if you have a Tomcat server, you can deploy it directly.
- Close the server, then click on the second icon above, click Open Server, tomcat6.0---start.
- If you have a successful look at the console, you will be prompted.
?
Error:
Workaround: Left has no resources and a 404 error has occurred.
When we are doing the frame, frameset can be understood as TR line, frame can be understood as TD column, there are multiple columns in one row is allowed.
Moreover, when we write SRC, the system will look for resources from under your folder by default, so it is best to write the name of the website first, then paste it.
?
How to remove the line inside the frame border="1" border = "0" can be
In the framework if not all the display, we can set the next frameset inside the rows = "15%,14%, xxxx"; Modify the scale.
?
?
HTML5 + CSS3 Very cool
CSS style sheet to beautify the page
Selectors, attributes, property values
Format: Selector {attribute: Property value}
1, Tag Selector body table, etc. to the HTML inside the markup to style
2, class selector to. Start with the. Class Name {attribute: property value}
3. ID Selector
4. Format: Start with #, #ID名称 {attribute: Property value}
?
An interface does not change in the background and becomes mostly style.
CSS is embedded, written in the style in front of the HTML.
<style>
a{
Font-size:30px
}
. One
{
Font-size:30px;
Color: Red;
Font-family: Official script;
}
. the
{
Font-size:30px;
Color: Red;
Font-family: Official script;
}
. Three
{
Font-size:30px;
Color: Red;
Font-family: Official script;
}
?
#first
{
Color:Red;
}
#secoed
{
Color:Blue;
}
</style>
It is best to use the outer-embedded type, can be directly referenced.
<link rel = "Sytlesheet" type= "Text/css" href= "Css/day4.css"/>
Rel to Point
?
Second, JavaScript introduction
Basic syntax: Case sensitive, variable type not divided, unified var. You can omit semicolons at the end of each statement
Keyword: break,case,do,else,for,if,function,retrun,while,catch,continue,default,delete
Variable declarations with C + +
Control statement: If IfElse switch
Alert pops up a dialog box
<script language
Embed JavaScript
???????? <scripttype="text/javascript">
???????? function logincheck ()
???????? {
???????? Alert (" I'm out ")
????????}
???????? </Script>
?
for JavaScript statement, the end must not have, semicolon, or will error, and wrong a full error.
???????? <scripttype="text/javascript">
???? function Logincheck () {
???????? var UserName = Document.login.userName.value// this thing needs a layer of peeling down, where document is the entire Document object, login Yes form name username is text text box
of the name;. Value is the value that gets the text box you entered.
???????? var password = document.login.password.value
???????? if (userName = = "") {
???????? Alert (" user name cannot be empty ")
???????? returnfalse
?
????????} Elseif (password = = "") {
alert (" password cannot be empty ")
return false
????????}
???????? Alert (" I'm out "+username + password)
????}
This is called the scripting language, in fact, the script statement JavaScript is the simplest one, do the user password verification is more appropriate.
What's more, when we do the page, we have to verify that it must be verified at the time of submission. We need to add a click event.
<inputtype="Submit"value=" Save "name=" btn "
OnClick="return Logincheck ();" >
If there is a return in the function, it is used directly return function (); can be.
Common errors:
- Incorrect function name put alert on the first line to see if it pops up
- The variable name is incorrectly written to move the alert one line down to see if you can pop up the dialog box
Requires a real-time refresh.
?
Common web errors:
1. Tomcat does not start to display Web page, is a white skin
2, 404 The requested resource does not exist, see if the URL is correct (Uniform Resource Locator URL) protocol +ip+ file path
?
HTML login interface, you can find someone else's template.
Technical learning at the front desk