1th Chapter HTML Introduction
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">5 <title>make my first page</title>6 </Head>7 <Body>8 <H1>Hello World</H1>9 </Body>Ten </HTML>
early code experience, making my first page
1 1. HTML is the carrier of Web content. The content is the information that the Web creator puts on the page to let the user browse, can contain text, picture, video and so on. 232. CSS styles are expressive. Just like a web coat. For example, the title font, color changes, or for the title to add background pictures, borders and so on. All these things that change the appearance of the content are called performance. 45 3. JavaScript is used to achieve special effects on a Web page. such as: Mouse over Popup drop-down menu. or the mouse slide over the background color of the table changes. There is also the rotation of the Focus news (news pictures). It can be understood that there are animations and interactions that are generally done with JavaScript.
the relationship between HTML and CSS
1 Each content in a Web page is displayed in a browser and is stored in a variety of tabs.
Recognize HTML tags
11. Label by English angle brackets<and the>Enclosed, such as<HTML>is a label. 2 3 2. The tags in the HTML are usually paired, with the start and end tags. The end tag has one more/more than the start tag. 4 53. Tags and labels can be nested, but the order must be consistent, such as:<Div>Inside nested<P>So</P>Must be placed in</Div>the front6 74. HTML tags are case insensitive,<H1>And<H1>is the same, but it is recommended in lowercase because most programmers are lowercase.
syntax for tags
1 an HTML file has its own fixed structure. 2 3 <HTML>4 <Head>...</Head>5 <Body>...</Body>6 </HTML>7 Code Explanation:8 91.<HTML></HTML>Called the root tag, all the page labels are in<HTML></HTML>the. Ten One2.<Head>Labels are used to define the head of a document, which is the container for all head elements. The head element has<title>、<Script>,<style>,<Link>,<Meta>and other labels A 3. In<Body>and the</Content between body> tags is the main content of the page, such as
Understanding the basic structure of HTML files
1 The header of the document describes various properties and information about the document, including the title of the document, and so on. Most of the data contained in the header of a document is not actually displayed to the reader as content. 2 3 The following tabs are available in the head section:4 5 <Head>6 <title>...</title>7 <Meta>8 <Link>9 <style>...</style>Ten <Script>...</Script> One </Head>
Recognize head tags
1 <!-- -
Understanding code comments for HTML
The 2nd Chapter recognizes the label (Part I)
1 What is called semantic, the popular point is: understand the purpose of each label (in which case the use of this label is reasonable) For example, the title of the article on the page can be used title tag, the column name of each column on the page can also use the title tag. The paragraph in the article should be placed in the paragraph label, in the article has the want to emphasize the text, you can use the EM tag to express emphasis and so on. 23 That's a lot of semantics, but what are the benefits of semantics? 451. More easily indexed by search engines. 67 2. Easier for screen readers to read Web content.
semantic to make your Web page better understood by search engines
1 The page content to be displayed on the Web page must be placed in the body tag.
tags, and the contents of the page are displayed here.
1 Note that a <p> tag in a piece of text, such as 3 paragraphs in a news article, will have to put these 3 paragraphs to 3 <p> in the label
Add a paragraph
1 Title tags A total of 6, H1, H2, H3, H4, H5, H6 respectively for the first-level title, two-level title, three-level title, four-level title, five-level title, six-level title. and decreases on the basis of importance. < H1 > is the highest level. 2 Syntax:3<HX> title text </HX > (x is 1-6)
Learn about tags and add titles to your pages
Add accent tone, use <strong> and <em> tags
1 <!--The <span> tag is not semantic, and its purpose is to set up a separate style. -2 <!DOCTYPE HTML>3 <HTML>4 <Head>5 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">6 <title>Great Gatsby.</title>7 <style>8 span{9 Color:Blue; Ten } One </style> A </Head> - <Body> - <P>In the spring of 1922, a writer who wanted to fame named Nick Karawi (Tobey Maguire Tobey Maguire) left the Midwest and came to New York. It was a time of rising morality, popular jazz, smuggling as king, and soaring stocks. In pursuit of his<span>American Dream</span>, he moved into a bay near New York to live.</P> the <P>Fitzgerald, one of the American literary giants of the 20th century, combines both writer and screenwriter. He sings the ornate elegy of the "Jazz Age" with the poet's sensibility and the imagination of the dramatist, and the temperament of his poet and Dreamer is also the perfect note for that extravagant age.</P> - </Body> - </HTML>
use labels to set individual styles for text
<q> tags, short text references
<blockquote> tags, long text references
Display text using the <br> label branch
Add some space to your page
Recognize
<address> tags, adding address information to a webpage
Do you want to add a line of code? Use <code> tags
Use <pre> tags to add large pieces of code to your page
3rd. Recognition of tags (PART II)
- Use UL to add a list of news messages
- Use OL to add book sales rankings
- Understanding the role of div in typesetting
- Name the div to make the logic clearer
- Table tags, recognize tables on a Web page
- Use CSS styles to add a border to a table
- Caption tags, adding titles and summaries to the table
4th. Recognition of tags (Part III)
- Use the <a> tab to connect to another page
- Open a connection in the new browser window
- Use mailto to connect to an email address in a webpage
- Recognize tag, insert pictures for Web pages
The 5th chapter interacts with the browser, form labels
- Use form labels to interact with users
- Text input box, password entry box
- Text fields, multi-line text input support
- Use the Radio box, check box, to let the user select
- Save space with a drop-down list box
- Use the drop-down list box to make multiple selections
- Submit data using the Submit button
- Use the reset button to reset the form information
- Label label on Form form
The 6th chapter begins with CSS, adding styles to the page
- Understanding CSS Styles
- Advantages of CSS Styles
- CSS code syntax
- CSS Comment Code
7th. CSS Style Basics
- Inline CSS style, written directly in existing HTML tags
- Inline CSS style, unload the current file
- External CSS style, written in a separate file
- Three ways to prioritize
8th Chapter CSS Selector
- What is a selector
- Tag Selector
- Class Selector
- ID Selector
- Differences between class and ID selectors
- Child Selector
- Include (descendant) selectors
- Universal Selector
- Pseudo class Selector
- Group Selector
The 9th chapter, CSS inheritance, cascade and particularity
- Inherited
- Particularity
- Cascade
- Importance
10th Chapter CSS Format layout
- Text layout--fonts
- Text layout--font size, color
- Text layout--Bold
- Text Layout-Italic
- Text layout-Underline
- Text layout--delete Next
- Text layout--indentation
- Text layout-line spacing (row height)
- Text layout--text spacing, letter spacing
- Text layout--alignment
11th Chapter CSS Box model
- Element classification
- Element Classification--block-level elements
- Element classification--inline elements
- Element classification-inline block elements
- What is a box model (02:14)
- Box model--border (i)
- Box model--border (two)
- Box model--width and height
- Box Model--fill
- Box model--boundary
12th Chapter CSS Layout model
- CSS Layout model
- Flow model (i)
- Flow Model (ii)
- Floating model
- What is a layer model
- Layer model--absolute positioning
- Layer model--relative positioning
- Layer model--fixed positioning
- Relative combined with absolute
13th. CSS code abbreviations, taking up less bandwidth
- Box Model Code Shorthand
- Color value abbreviation
- Font abbreviations
Chapter 14th Unit and value
- Color values
- Length value
The 15th chapter CSS style setting tips
- Center horizontal setting-inline elements
- Center horizontally setting-fixed width block element
- Horizontal Center Summary-variable width block element method (i)
- Horizontal Center Summary-variable width block element method (ii)
- Horizontal Center Summary-variable width block element method (iii)
- Center vertically-single line of text with parent element height determination
- Center vertically-multi-line text with parent element height determination (method one)
- Center vertically-Multiple lines of text (method two) of the parent element height determination
- Implicitly changing the display type
HTML+CSS Basic Course notes (MOOC) added in succession ...