Home Web Front-end HTML Tutorial Chapter 2 unit 1 of Bootstrap-Bootstrap CSS_html/css_WEB-ITnose

Chapter 2 unit 1 of Bootstrap-Bootstrap CSS_html/css_WEB-ITnose

Jun 24, 2016 pm 12:06 PM

       Hello ,dear readers, today bootstrap css will be discussed, though many references quoted from this book , examples and demos will be added in later blogs.

  1.        Typography

       Starting with typography, Bootstrap uses Helvetica Neue, Helvetica, Arial, and sansserif in its default font stack.here,we can know the types of defalut fonts in Bootstrap.

if these fonts above are not installed in your computer and broswer, and  sansserif  will be used as its default font and showed to you.  All body copy has the font-size set at 14

pixels, with the line-height set at 20 pixels. The

tag has a margin-bottom of 10 pixels, or half the line-height(5 pixels).

       1.1     headings

       All six standard heading levels have been styled in Bootstrap range from

to

  with the

at 36 pixels tall, and the
down to 12 pixels (for reference,

default body text is 14 pixels tall). in order  to add an inline subheading to any of the headings ,you can add a tag  around to create a subheading and make its color

lighter than the  parent heading.

      1.2    lead body copy

       To add some emphasis to a paragraph, add class="lead" 。This will give you larger font size, lighter weight, and a taller line height. This is generally used for

the first few paragraphs in a section, but it can really be used anywhere.


     1.3    Emphasis

     In addition to using the tag within headings, as discussed above, you can also use it with body copy. When is applied to body text, the font shrinks to

85% of  its original size.

      1.4    Bold

    To add emphasis to text, simply wrap it in a tag. This will add fontweight:bold; to the selected text.

      1.5   Italics

      For italics, wrap your content in the tag. The term “em” derives from the word “emphasis” and is meant to add stress to your text.

      HERE ,A NEW QUESTATION WILL BE ASKED,AND THEN I WILL FIND AN ANSWER FOR IT.

1.why not just use the or tags instead of or ?

      1.6   Emphasis Classes


     Along with and , Bootstrap offers a few other classes that can be used toprovide emphasisThese could be applied to paragraphs or spans:
   

This content is muted


    

This content carries a warning class


   

This content carries an error class


   

This content carries an info class


   

This content carries a success class


   

This content has emphasis, and can be bold

     1.6.1 Abbreviations(中文:缩略词)


     The HTML element provides markup for abbreviations or acronyms, like WWW or HTTP.By marking up abbreviations, you can give useful
information to browsers, spell checkers, translation systems, or search engines. Bootstrap styles elements with a light dotted border along the bottom and reveals
the full text on hover (as long as you add that text to the title attribute): RSS.

    1.6.2 Addresses


    Adding

elements to your page can help screen readers and search engines locate any physical addresses and phone numbers in the text 。It can also be used to mark up email addresses. Since the
defaults to display:block; you’ll need to use
tags to add line breaks to the enclosed address text (e.g., to split the street address and city onto separate lines):



   O'Reilly Media, Inc.
1005 Gravenstein HWY North
Sebastopol, CA 95472

   P: (707) 827-7000


    Jake Spurlock

    flast@oreilly.com

   1.6.3 Blockquotes


   To add blocks of quoted text to your document?or for any quotation that you want to set apart from the main text flow?add the

tag around the text. For best
results, and for line breaks, wrap each subsection in a

tag. Bootstrap’s default styling indents the text and adds a thick gray border along the left side. To identify the source of the quote, add the tag, then add the source’s name wrapped in a tag before closing the tag:



 

That this is needed, desperately needed, is indicated by the incredible uptake of Bootstrap. I use it in all the server software I'm working on. And it shows through in the templating language I'm developing, so everyone who uses it will find it's "just there" and works, any time you want to do a Bootstrap technique. Nothing to do,
no libraries to include. It's as if it were part of the hardware. Same approach that Apple took with the Mac OS in 1984.


      Developer of RSS, Dave Winer

   1.7 Lists

   ul    ol    dl

 

    1.7.1 Unordered list


    If you have an ordered list that you would like to remove the bullets from, add class="unstyled" to the opening

    tag :


      

    Favorite Outdoor Activities


        

            
    • Backpacking in Yosemite

    •       
    • Hiking in Arches
                

                     
      • Delicate Arch

      •               
      • Park Avenue

      •           

            

    •       
    • Biking the Flintstones Trail

    •    

        1.7.2 Ordered list


        An ordered list is a list that falls in some sort of sequential order and is prefaced by numbers rather than bullets (see Figure 2-10). This is handy when you want to build a
    list of numbered items like a task list, guide items, or even a list of comments on a blog post:


        

    Self-Referential Task List


        

             
    1. Turn off the internet.

    2.        
    3. Write the book.

    4.        
    5. ... Profit?

    6.     

     

          1.7.3 Definition list


          The third type of list you get with Bootstrap is the definition list. The definition list  differs from the ordered and unordered list in that instead of just having a block-level

  • element, each list item can consist of both the
    and the
    elements.
    stands for “definition term,” and like a dictionary, this is the term (or phrase) that is being defined. Subsequently, the
    is the definition of the
    . A lot of times in markup, you will see people using headings inside an unordered list. This works, but may not be the most semantic(语义学的 )way to mark up the text. A better method would be creating a
    and then styling the
    and
    as you would the heading and the text .That being said, Bootstrap offers some clean default styles and an option for a side-by-side layout of each definition:

     

    Common Electronics Parts


       

        
    LED

       
    A light-emitting diode (LED) is a semiconductor light source.

        
    Servo

       
    Servos are small, cheap, mass-produced actuators used for radio control and small robotics.

       

      To change the

    to a horizontal layout, with the
    on the left side and the
    on the right, simply add class="dl-horizontal" to the opening tag

     

Statement of this Website
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

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Is HTML easy to learn for beginners? Is HTML easy to learn for beginners? Apr 07, 2025 am 12:11 AM

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

The Roles of HTML, CSS, and JavaScript: Core Responsibilities The Roles of HTML, CSS, and JavaScript: Core Responsibilities Apr 08, 2025 pm 07:05 PM

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

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

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

What is an example of a starting tag in HTML? What is an example of a starting tag in HTML? Apr 06, 2025 am 12:04 AM

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Apr 04, 2025 pm 11:54 PM

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...

How to implement adaptive layout of Y-axis position in web annotation? How to implement adaptive layout of Y-axis position in web annotation? Apr 04, 2025 pm 11:30 PM

The Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...

HTML, CSS, and JavaScript: Essential Tools for Web Developers HTML, CSS, and JavaScript: Essential Tools for Web Developers Apr 09, 2025 am 12:12 AM

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

How to use CSS3 and JavaScript to achieve the effect of scattering and enlarging the surrounding pictures after clicking? How to use CSS3 and JavaScript to achieve the effect of scattering and enlarging the surrounding pictures after clicking? Apr 05, 2025 am 06:15 AM

To achieve the effect of scattering and enlarging the surrounding images after clicking on the image, many web designs need to achieve an interactive effect: click on a certain image to make the surrounding...

See all articles