web front-end entry to the real: Html introduction, CSS introduction, JavaScript Introduction

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/wewfdf/article/details/102673002

Title image

CSS Introduction

Learn to master the necessary front-end CSS styles, css as Cascading Style Sheets, used to define the page display, to enhance the user experience fun, how to use html css in it?

style attribute way

Using the style attribute tag changes the display style

p tags Author:

Adding style tags in the head author:

p{color:#FFF000;}

Link mode

CSS summary

Select the name {

Property name: property value;

…….

}

Separated by semicolons properties with the property

Attributes and attribute values ​​are connected by a colon

Selector

1.class selector

2.id selector

.class# id

Html

html Hypertext Markup Language, tag defined by the language, the code is not case sensitive.

Head tag

: Specifies the content in the browser title bar shows. : Description of the page.

Commonly used in labels:

Fonts

Title Tag:

……

List

Name Name Tom Tom

image

Image tags: Image Map:

form

Table tags:

Header cell
Header
Row

Table header name, age dashucoding10

Hyperlink

Hyperlinks positioning mark

Forms

Text box text

Password box password

Radio button radio

Checkbox checkbox

Submit button submit

Reset button reset

Button button

Image image

JavaScript Introduction

JavaScript is an object-based and event-driven scripting language, providing information for the dynamic interaction html, high security, cross-platform and strong. JS is based on the object, and a weakly typed.
web front-end development learning Qqun: 767273102, way to share learning and the need to pay attention to small details, constantly updated with the latest tutorials and learning methods (detailed front-end project combat instructional video)

Introduction:

The script JavaScript code embedded into HTML documents

document.write ( "Welcome to the JavaScript world!");

functionclickme () {alert ( "click!");

Location of script code

Placed between markers

Placed between markers

variable

Variable names begin with a letter or an underscore ( "_")

May comprise a variable number, from case letters A to Z

JavaScript is case sensitive

Statements and variable assignments

Definition of variables: var name;

Assignment: name = dashucoding;

constant

1. Integer

2. Float

3. String

4. Data Type

The weak type, case sensitive

Numeric

Integer, float

String

Single or double quotes

Boolean

true, false

Null、undefined

Operators

Arithmetic Operators

+、-、 * 、 / 、%、++、–

Comparison Operators

==、!=、>、>=、<、<=

Logical Operators

&&、||、!

Conditional operator

?:

function

function function name (parameter ...) {execute the statement; return return value;}

Array

vararr =newArray();

for(var x=0; x<arr.length; x++){

alert(arr[x]);}

loop statement

1.for statement

2.while statement

3.for ... in statement

4. Interrupt loop

for (initialization; condition; increment) {statement;}

while (condition) {statement;}

for (variable in object) {statement;}

Guess you like

Origin blog.csdn.net/wewfdf/article/details/102673002