HTML&CSS

作者: Wilbur_ | 来源:发表于2021-06-27 09:37 被阅读0次

most are just elements that help structure the html page. (I wondered why markdown is called markdown because HTML's M stands for markup ??)
Anyway, interesting to get to know all this stuff.

image.png

<q>, <em>, <a> are all inline elements. The content in these elements flows in line with the rest of the content in the containing element.

User the
element when you need to insert your own linebreaks.


is an "empty element"

Empty elements have no content.

A nested element is an element contained completely within another element. If your elements are nested properly, all your tags will match correctly.

You make an HTML list using two elements in combination: use <ol> with <li> for an ordered list; use <ul> with <li> for an unordered list.

When the browser displays an ordered list, it creates the numbers for the list so you don't have to.

<ol>
  <li>this</li>
  <li>is</li>
  <li>orederd</li>
</ol>

You can specify your own ordering in an ordered list with the start attribute. To change the values of the individual items, use the value attribute.

You can build nested lists within lists by putting <ol> or <ul> elements inside your <li> elements
Use entities for special characters in your HTML content.

Most web hosting companies support a method of file transfer called FTP, which stands for File Transfer Protocol. You'll find a number of applications out there that will allow you to transfer your files via FTP

Linking into a page

<a> element can play two roles: you've already seen it act as the jumping off point for traveling from one page to another, but it can also act as a landing point or destination of a link.

When you use an <a> element to create a destination, we call that a "destination anchor." Creating a destination anchor is straightforward. Here's how you can do it in three short steps:

  1. Find the location in the page where you'd like to create a landing spot. This can be any text on the page, but often is just a short piece of text in a heading.
  2. Wrap the text within an <a> element.
  3. Choose a identifier name for the destination, like "coffee" or "summary" or "bio", and insert an id attribute into your <a> element.

You already know how to link to pages using either relative links or URLs. In either case, to link more specifically to a destination anchor in a page, just add a # on the end of the your link, followed by the destination anchor identifier. So if you wanted to link from any StarBuzz Coffee Web page to the "chai" destination anchor you'd write your <a> element link this:
<a href="index.html#chai">See Chai Tea</a>

Linking to a new window

you could tell the browser to use a different window by adding a target attribute to the <a> element
The value of the target attribute tells the browser the "target window" for the page. If you use "_blank" for the target, the browser will always open a new window to display the page. Let's take a closer look:
<A target="_blank" href="google.com" title="google">google</a>

相关文章

  • 总目录

    HTML&CSS JavaScript jQuery 趣味数学

  • html基础

    ------------- 《HTML&CSS设计与构建网站》 ----------------- 1. 页面结...

  • html&css

    网元的四大部分:header,nav,main,footerarticle-> sectionem 斜体stron...

  • HTML&CSS

    首先声明,这些文章是本人对于新知识以及遗忘知识的补漏,体系不完整是肯定的。如若有错,还请指正,感谢!! 一、标签H...

  • HTML&CSS

    1. comment: HTML: CSS: /*comment*/ 2. e...

  • HTML&CSS

    自学网站推荐------菜鸟教程 注:Java 文件是需要先编译,再由 java 虚拟机跑起来。但 HTML 文件...

  • HTML&CSS

    # 课程:HTML & CSS bilibili公益课程,来自渡一教育 ## 讲课风格 1. 风格 2. 形式 3...

  • HTML&CSS

    most are just elements that help structure the html page....

  • 前端面试题(1)

    HTML&CSS 1.请描述一下 cookies,sessionStorage 和 localStorage 的区...

  • web前端面试题总结(2)

    引用地址 HTML&CSS 1.请描述一下 cookies,sessionStorage 和 localStora...

网友评论

      本文标题:HTML&CSS

      本文链接:https://www.haomeiwen.com/subject/uscpyltx.html