search
HomeWeb Front-endHTML TutorialSummary of Html knowledge

Summary of Html knowledge

Jan 16, 2017 am 11:51 AM
html

1. Jump out of the new page:

target="_self" does not jump

Jump setting for form form submission

2. Click the button to jump to other pages and add

onclick="return false"

3. display:block;Block-level element, that is to say, it can set some width and height and occupy an exclusive line, such as div element, p elements and other display:inline-block, row-level elements, that is to say, it can make elements that are also set as row-level elements together in one line, and then you can set the width and height. This is suitable for making a navigation menu and setting each menu item Row-level elements. Its width and height default to the width and height of the content, and a typical element is a form class element. dispaly: inline. For row-level elements, the width and height cannot be set. The default width and height are the width and height of the content. Typical examples include span,

4, html mouse hand:

cursor: pointer;

5. HTML background image attributes:

background-size:100%;, but the width and height of your image should be set to 100%. Pay attention to the .php file The background-image:url(); inside is not easy to use and invalid. You have to use the absolute path of the website background:url('/20151106/404/image/404.png') no-repeat 4px 5px;}background:url ("11111.jpg");background-repeat:no-repeat;background-size:100%;width:100%;height:100%;

This is the body that adds a background to the page{padding: 0px;margin: 0px;background-color:#494949;width:100%;height:100%;}.

You can also use background-image:url("" when setting the background image ; ;q>double quote tag underline

7. html---position/relative/absolute/fixed/The summary of the three layout positioning methods relative is According to itself, absolute is based on the browser, but it should be noted that if it has a parent element, then it changes its position according to the parent element.

8. Remove the black dots in front of the unordered list li{list-style:none;}

9. Hidden elements - display:none or visibility:hidden

display- After this element is set, the original element will not occupy the current space and will not affect the layout. However, the latter element will still occupy space after being hidden.

10. HTML hidden redundant

Div{overflow :hidden}

10. Hide adaptive: overflow:auto;

11. Questions about the frame

This is to accept the page you want to display

indx.php is the page displayed by the frame, the top one, that is, it is displayed without buttons

This is where you want to display it after clicking: target=""

Add category

12. Regarding the height of the background, that is to say, you defined a div but didn't do it. Get your picture on top. Then there is this attribute

overflow:hidden;

That is, you belong to the parent element, but your float is separated from the text and becomes floating, so everything will not We are using the space of parent-child elements, so add this overflow:hidden;

13. Anchor setting

Add the following to the page you want to jump to:

Then addFind the anchor point

where you want to add the link 14. Click to change the verification code image

15、Rounded corners

border-radius:5px;

16. The text on the left side of the textarea is on the far left

style="vertical-align:top"


17. HTML block elements and inline elements To summarize, block elements can set margin, but when using margin, they must comply with: 1. Block elements, 2. Have width and height. Inline elements cannot set the margin and width and height attributes, and can only set padding

Block element list:

Definition address

Definition table title

Definition in the list Entries

Defines a section or section in a document

Defines a list

Defines an item in a list

Define a frameset

Create an HTML form

Define the largest title

Define subtitle

Define the title

Define the title

Define the title

Define the smallest title


Create a horizontal line

Element defines title for

element

  • Label defines list item

    Display text for browsers that do not support frames, inside the frameset element<br><br><noscript>Define alternative content when the script is not executed<br><br><ol>Define ordered list<br><br> </ol> <ul>Define unordered list<br><br><p>Tag definition paragraph<br><br></p> </ul> <pre class="brush:php;toolbar:false">Define preformatting The text&lt;br&gt;&lt;br&gt;</pre> <table> tag defines the HTML table<br><br><tbody>tag table body (body)<br><br><td>Standard cells in the table<br><br> </td> </tbody> <tfoot>Define the footer of the table (footnote or table note)<br><br><th>Define the header cell<br><br><thead>The label defines the header of the table <br><br><tr>Define rows in the table<h2 id="List-of-inline-elements">List of inline elements</h2> <p><a>Tag can define anchors<br><br><abbr>Representation An abbreviation form<br><br><acronym>defines only the acronym<br><br><b>Bold font<br><br><bdo>can override the default text direction<br><br><big>Large font bold<br><br><br>Line break<br><br><cite>Quote for definition<br><br><code>Definition of computer code Text&lt;br&gt;&lt;br&gt;&lt;dfn&gt;Define a definition item&lt;br&gt;&lt;br&gt;&lt;em&gt;Defined as emphasized content&lt;br&gt;&lt;br&gt;&lt;i&gt;Italic text effect&lt;br&gt;&lt;br&gt;&amp;lt ;img&gt;Embed an image into a web page&lt;br&gt;&lt;br&gt;&lt;input&gt;Input box&lt;br&gt;&lt;br&gt;&lt;kbd&gt;Define keyboard text&lt;br&gt;&lt;br&gt;&lt;label&gt;The label is&lt;br&gt; &lt;br&gt;&lt;input&gt; Element definition annotation (tag)&lt;br&gt;&lt;br&gt;&lt;q&gt;Define short quote&lt;br&gt;&lt;br&gt;&lt;samp&gt;Define sample text&lt;br&gt;&lt;br&gt;&lt;select&gt; Create a single or multi-select menu&lt;br&gt;&lt;br&gt;&lt;small&gt;Render a small font effect&lt;br&gt;&lt;br&gt;&lt;span&gt;Combine inline elements in the document&lt;br&gt;&lt;br&gt;&lt;strong&gt;More tone Strongly emphasized content&lt;br&gt;&lt;br&gt;&lt;sub&gt;Define subscript text&lt;br&gt;&lt;br&gt;&lt;sup&gt;Define superscript text&lt;br&gt;&lt;br&gt;&lt;textarea&gt;Multi-line text input control&lt;br&gt;&lt;br&gt;&lt;tt&gt;Typewriter or fixed-width text effect&lt;br&gt;&lt;br&gt;&lt;var&gt;Define variables&lt;br&gt;&lt;/var&gt;&lt;/tt&gt;&lt;/textarea&gt;&lt;/sup&gt;&lt;/sub&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/small&gt;&lt;/select&gt;&lt;/samp&gt;&lt;/q&gt;&lt;/label&gt;&lt;/kbd&gt;&lt;/i&gt;&lt;/em&gt;&lt;/dfn&gt;</code></cite></big></bdo></b></acronym></abbr></a></p> </tr> </thead> </th> </tfoot> </table> </noscript>
  • Statement
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

    The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

    HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

    The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

    The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

    The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

    HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

    The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

    HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

    HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

    HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

    HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

    From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

    HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

    Understanding HTML, CSS, and JavaScript: A Beginner's GuideUnderstanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AM

    WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

    See all articles

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Tools

    SublimeText3 Linux new version

    SublimeText3 Linux new version

    SublimeText3 Linux latest version

    Dreamweaver Mac version

    Dreamweaver Mac version

    Visual web development tools

    ZendStudio 13.5.1 Mac

    ZendStudio 13.5.1 Mac

    Powerful PHP integrated development environment

    SecLists

    SecLists

    SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)